Ruby and Jenkins
JP’s a Dad now 😳
March 1, 2013
I was trying to integrate my Cucumber and RSpec tests with Jenkins earlier this week and came across a bunch of character encoding errors.
It took me a while to figure out the problem, essentially Jenkins loads a session without all your usual environment variables, so your PATH and LANG won't be set to the same as a terminal window, making the outcomes different.
My Jenkins executed shell script now looks like this, note the PATH and LANG exports!
Discussion in the ATmosphere