How do I use a custom ruby version when using the machine executor?

When using the machine executor, RVM is available for easy installation and use of custom ruby versions.


To get this going, add a step like the following:


- run:
name: Set ruby version to 2.3.4
command: |
rvm install 2.3.4
echo . $(rvm 2.3.4 do rvm env --path) >> $BASH_ENV


After this step runs, the new ruby version will be in place.

Was this article helpful?
1 out of 2 found this helpful



Article is closed for comments.