How can i get Jenkins to use rvm ruby version ?

28 views
Skip to first unread message

seun are

unread,
Mar 9, 2015, 9:33:06 AM3/9/15
to jenkins...@googlegroups.com
Hi,

Can anyone help me? everytime i am running my job on Jenkins its picking up the ruby.framework version 2.0 and my job Gemfile specifies ruby 2.2.0 so please i need help to force jenking (master) to use the rvm ruby-2.2.0 i dont seem to get a way around it.

Jenkins version: 1.601

Benjamin Lau

unread,
Mar 9, 2015, 1:08:04 PM3/9/15
to Jenkins Users
I use an execute shell step with this at the top to force jenkins to
do what I want:
#!/bin/bash -x
source "/usr/local/rvm/scripts/rvm"
rvm use 1.8.7
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/b0401a35-abca-4ded-88d9-1a8c870259d6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages