Remote jenkins pipelien flow fails when calling from jenkins cli

the parameters are not being recognised
pipeline fails with null pointer exception

Failed because of java.lang.NullPointerException: Cannot invoke method trim() on null object

command used was

java -jar jenkins_2.235.2/jenkins-cli.jar -s https://jenkins:port/ -auth / build ‘Testing Job’ -p BU=ABC

Hello and welcome to this community, @pridesai. :wave:

The command you’re using seems to be missing the authentication token after -auth. As far as I know, the -auth option should be followed by a username and token in the format username:token.

Hi @poddingue ,

thanks for reply
I am using auth - here I did not pasted

it is triggering the pipeline with correct parameters
but once pipeline starts it fails with null pointer exception

thanks
Priya

I’m afraid we would need some more logs to try and help. :person_shrugging:

Have you passed all parameters that are defined in the job to the cli command?