Jenkins CLI

36 views
Skip to first unread message

Hector Magnanao

unread,
Feb 24, 2016, 11:21:36 AM2/24/16
to Jenkins Users
I'm trying to use the Jenkins CLI in Windows by issuing the command: java -jar Jenkins-cli -s <myurl> build 'test'
and it keeps returning an error saying no such job ''test''

I know that the job exists so can someone tell me what I could be doing wrong ?

James Nord

unread,
Feb 25, 2016, 1:29:23 PM2/25/16
to Jenkins Users

On Wednesday, February 24, 2016 at 4:21:36 PM UTC, Hector Magnanao wrote:
I'm trying to use the Jenkins CLI in Windows by issuing the command: java -jar Jenkins-cli -s <myurl> build 'test'
and it keeps returning an error saying no such job ''test''


My guess would be not specifying any credentials and are authenticating as anonymous - who has some permissions - but not enough to see the "test" build?

look at the --user and -i options.

Hector Magnanao

unread,
Feb 26, 2016, 10:27:10 AM2/26/16
to Jenkins Users
I'm using my own login and password.  Do I have to run the command in the same directory as the build jobs ?

Hector Magnanao

unread,
Feb 26, 2016, 1:23:54 PM2/26/16
to Jenkins Users
I was able to run my job after I gave myself the right permissions.  But now it can't find jobs with spaces in the name.  How do I get around this ?  I tried putting the job name in single quotes.
Reply all
Reply to author
Forward
0 new messages