Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@etoews
Created June 11, 2014 02:04
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 etoews/e2061a056b31b1bc5a2c to your computer and use it in GitHub Desktop.
Save etoews/e2061a056b31b1bc5a2c to your computer and use it in GitHub Desktop.
gem install jekyll -v '1.5.1' --no-rdoc --no-ri --conservative --user-install
gem install rdiscount --no-rdoc --no-ri --conservative --user-install
jekyll build --safe
# Save the GitHub PR number for the downstream build
curl -sO $BUILD_URL/consoleText
GITHUB_PR_NUMBER=$(head -1 consoleText | sed 's/.*pull request #\([0-9]*\) to.*/\1/')
echo "export GITHUB_PR_NUMBER=$GIT_PR_NUMBER" > $WORKSPACE/_site/triggering-build.rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment