For any of you folks still managing your own Jenkins CI box like I am, you may be interested to know that the
RVM plugins are great no-nonsense plugins that work.
My current Jenkins instance has been running for several years. Jenkins itself is getting upgraded with standard Ubuntu package upgrades, but it’s been a long time since I looked into plugin upgrades.
Older projects had some ugly setup script to get the rvm environment correct for the build. Stuff like:
. "$HOME/.rvm/scripts/rvm" rvm use --create 1.9.3-p194@selectorschoice gem install bundler bundle bundle exec rake
Much of this was came from old rvm docs or elsewhere on the web.
Well, I took the time to update my plugins recently and tried both the RVM and rbenv plugins. They both work smoothly. Simply add them to your Jenkins system. Then configure the build to run in either RVM or rbenv environment. Now my test scripts have been trimmed down to
bundle bundle exec rake
And the log outputs are much cleaner so it’s easier to dig in when there are issues.
Check them out:
RVM Plugin version 0.4
rbenv Plugin version 0.0.15