Last active
December 18, 2015 11:29
-
-
Save colinrymer/5775992 to your computer and use it in GitHub Desktop.
Basic jenkins setup
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
#!/bin/bash | |
# Set "fail on error" in bash | |
set -e | |
[[ -s "/var/lib/jenkins/.rvm/scripts/rvm" ]] && source "/var/lib/jenkins/.rvm/scripts/rvm" | |
# Use the correct ruby | |
export MAIN_RUBY="1.9.3-p194" | |
rvm use --create --install $MAIN_RUBY | |
rvm gemset use $JOB_NAME --create | |
command -v bundle >/dev/null 2>&1 || gem install bundle | |
bundle install --without acceptance | |
bundle exec rake hudson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment