Skip to content

Instantly share code, notes, and snippets.

@rickrussell
Created December 13, 2012 18:38
Show Gist options
  • Save rickrussell/4278571 to your computer and use it in GitHub Desktop.
Save rickrussell/4278571 to your computer and use it in GitHub Desktop.
Jenkins Build Scripts
#!/bin/bash
mkdir -p log
rm -f log/deploy.log
source ~/.bash_profile
rvm install ree-1.8.7-2011.12
cp .rvmrc.template .rvmrc
rvm rvmrc trust
cd .
cp ~/secrets.rb config/secrets.rb
#Show the user which keys are being used.
ssh-add -l
set -e
set -x
bundle install --binstubs --quiet --path vendor/bundle
bin/cap testing deploy:cleanup
bin/cap testing deploy:migrations scalr:snapshot:app scalr:snapshot:worker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment