Skip to content

Instantly share code, notes, and snippets.

@mishin
Forked from boyron/commit.push.build.sh
Created November 25, 2016 17:27
Show Gist options
  • Save mishin/4752d50944d52c919f6fc9c068b6dc55 to your computer and use it in GitHub Desktop.
Save mishin/4752d50944d52c919f6fc9c068b6dc55 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