Skip to content

Instantly share code, notes, and snippets.

@btobolaski
Created October 11, 2013 03:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save btobolaski/6929015 to your computer and use it in GitHub Desktop.
Save btobolaski/6929015 to your computer and use it in GitHub Desktop.
Jekyll build scripts for Jenkins
#!/bin/bash --login
cd $WORKSPACE
rbenv rehash
LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" jekyll build
#!/bin/bash --login
cd $WORKSPACE
bundle install
#!/bin/bash
# Use this for a deploy to another server
rsync -av --checksum $WORKSPACE/_site/ deploy@webserver.example.com:/webroot/
# Use this for deploys to the same server
rsync -av --checksum $WORKSPACE/_site/ /path/to/webroot/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment