rbenv and rvm plugins for Jenkins

For any of you folks still managing your own Jenkins CI box like I am, you may be interested to know that the rbenv and 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 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 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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s