Skip to content

Instantly share code, notes, and snippets.

@boyron
Last active November 25, 2016 17:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save boyron/f8464ec8122fc5ff6b79 to your computer and use it in GitHub Desktop.
Save boyron/f8464ec8122fc5ff6b79 to your computer and use it in GitHub Desktop.
Commit, push and build at once
#!/bin/bash
# @see http://www.ittybittytalks.com/commit-push-trigger-jenkins-build/
git commit -a -m "$1"
git push
curl --user <your_jenkins_username>:<your_jenkins_API_key> http://<jenkins_server_url>/job/<your_jenkins_job_name>/build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment