Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created April 10, 2015 08:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save IanVaughan/34a966a56e511f6ce64f to your computer and use it in GitHub Desktop.
Save IanVaughan/34a966a56e511f6ce64f to your computer and use it in GitHub Desktop.
Trigger Jenkins build remotely
# Ever wanted to force a jenkins build quickly?
# Put this file in your path somewhere, and chmod +x it
curl "http://<jenkins-server-url>/buildByToken/build?job=<job-name>&token=<token>”
# Replace <vars> with your own config
# Goto your project configure page : http://<jenkins-server-url>/job/<job-name>/configure
# And set “Trigger builds remotely” to <token>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment