Last active
November 25, 2016 17:27
-
-
Save boyron/f8464ec8122fc5ff6b79 to your computer and use it in GitHub Desktop.
Commit, push and build at once
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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