Skip to content

Instantly share code, notes, and snippets.

@rentalcustard
Created January 21, 2011 14:59
Show Gist options
  • Save rentalcustard/789781 to your computer and use it in GitHub Desktop.
Save rentalcustard/789781 to your computer and use it in GitHub Desktop.
Hudson + RVM wierdness?

via a login shell:

deploy@jgp-dev01:~$ cat test.sh
which bundle
deploy@jgp-dev01:~$ /usr/local/bin/rvm-shell test.sh 
/usr/local/rvm/gems/ruby-1.8.7-p330@ci/bin/bundle

via hudson:

[workspace] $ /usr/local/bin/rvm-shell 1.8.7@ci /tmp/hudson8555917946525882045.sh
/usr/bin/bundle

where the first line of the /tmp/ script is 'which bundle'

@rentalcustard
Copy link
Author

Fixed - rogue per-user .rvm directories are bad.

@vbatts
Copy link

vbatts commented Jan 21, 2011

the sourcing of the rvm session, that is the line in ~/.profile or ~/.bashrc like:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment