Jenkins CLI -- how to build a job in a subdirectory -


i trying build job using jenkins-cli.jar, cannot figure out how tell jenkins job in subdirectory.

$ java -jar jenkins-cli.jar -s https://myserver/ list-jobs util --username jerry --password swordfish thejobiwant anotherjob someotherjob 

so job there, inside folder. when try run it, get:

$ java -jar jenkins-cli.jar -s https://myserver/ build util/thejobiwant -s --username jerry --password swordfish no such job 'util/thejobiwant' 

how supposed call job cli?

when saying 'subdirectory', mean 'subview' ?

i've created job named 'job1' under netsted view-->subview folder. enter image description here when tried trigger build jenkins command line, using:

java -jar jenkins-cli.jar -s http://localhost:8080/ build job1 --username admin --password admin 

and can see, 'job1' has been triggered.

enter image description here

hope helps!


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -