jenkinsci/rake-plugin — pull request #7 by codez (2011-12-02 17:59:11+00:00)
Title: Prepend bin path to PATH instead of appending it.

If the system ruby appears in PATH before the appended bin paths, this will be used instead. This leads to unpredictable behavior (like different rake or gem versions being used). So the bin paths should be prepended to the PATH variable instead, like RVM does.

As a workaround, I currently set the PATH variable for the task with the corresponding RVM bin paths prepended, and everything works fine.