Skip to content

Instantly share code, notes, and snippets.

@chrismdp
Created August 5, 2014 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismdp/134e8dc6434b3f483e43 to your computer and use it in GitHub Desktop.
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 * * *'.
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