Skip to content

Instantly share code, notes, and snippets.

@maxkarelov
Created December 1, 2015 15:59
Show Gist options
  • Save maxkarelov/1186851fbcaf813d2d2a to your computer and use it in GitHub Desktop.
Save maxkarelov/1186851fbcaf813d2d2a to your computer and use it in GitHub Desktop.
create jenkins job from xml file
java -jar jenkins-cli.jar -s http://server create-job newmyjob < myjob.xml
@oscarenzo
Copy link

Very util, can you share where can download the file jenkins-cli.jar and some example file for myjob.xml for use as template?, thank you!.

@strongpapazola
Copy link

you can download jenkinscli.jar from your server, just type
http://<your_server>/cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment