Skip to content

Instantly share code, notes, and snippets.

@feffi
Created June 14, 2013 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feffi/5781521 to your computer and use it in GitHub Desktop.
Save feffi/5781521 to your computer and use it in GitHub Desktop.
cd /Users/<your-user-name>/.jenkins/jobs/
mkdir ci-template
cd ci-template
wget https://gist.github.com/feffi/5781320/raw -O build.xml
wget https://gist.github.com/feffi/5781450/raw -O config.xml
wget http://localhost:8080/jnlpJars/jenkins-cli.jar
java -jar jenkins-cli.jar -s http://localhost:8080 reload-configuration
java -jar jenkins-cli.jar -s http://localhost:8080 create-job ci-template < config.xml
java -jar jenkins-cli.jar -s http://localhost:8080 reload-configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment