Skip to content

Instantly share code, notes, and snippets.

@colinrymer
Last active December 18, 2015 11:29
Show Gist options
  • Save colinrymer/5775992 to your computer and use it in GitHub Desktop.
Save colinrymer/5775992 to your computer and use it in GitHub Desktop.
Basic jenkins setup
#!/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