Created
August 5, 2014 12:08
-
-
Save chrismdp/134e8dc6434b3f483e43 to your computer and use it in GitHub Desktop.
Jenkins script to force push Jekyll to Github Pages each day, for scheduled blog posts. Run this as a Jenkins Job on your blog git repository, and set to 'build periodically'. My cron job reads 'H 7 * * *'.
This file contains 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
git ci --amend -m "`git show -s --format=%s` | |
Force updated by Jenkins build $BUILD_ID" | |
git push -f origin HEAD:master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment