Skip to content

Instantly share code, notes, and snippets.

@edwork
Forked from btobolaski/build.sh
Created November 7, 2017 18:13
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 edwork/a40abf5149cb8ac786b728f45890379e to your computer and use it in GitHub Desktop.
Save edwork/a40abf5149cb8ac786b728f45890379e 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