I've been creating two jobs: - FOO1 (pipeline) - FOO2 (freestyle).
No configuration; just creation of the jobs. I have registered a SSH key with no passphrase at my user. The jenkins-cli.jar has been downloaded from the Jenkins specified in the URL. I'm using Jenkins 2.0-rc1 the moment. $ cat build.sh #!/bin/bash PROMPT="$(basename $0) :: " echo "${PROMPT}Build job for ${JOB_NAME} ..." java -jar jenkins-cli.jar -s ${JENKINS_URL} -i ${JENKINS_PRIVATE_KEY} build "${JOB_NAME}" With "*export JOB_NAME=FOO1; ./build.sh*" I get following output: build.sh :: Build job for FOO1 ... ERROR: No such job 'FOO1'; perhaps you meant 'Build-and-run-Nginx'? With "*export JOB_NAME=FOO2; ./build.sh*" I get no error and the freestyle job is really executed. Regards, Thomas -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/aef40f03-4c74-434e-97d2-39a5b2856ad4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.