Fixing Munge of ENV #54

merged 1 commit into from Jun 22, 2011


None yet

6 participants


I had a problem where all the builds started to fail except the first after a CIJoe restart. I traced the problem to the munging of the ENV when a hook is called. I have slightly modified the run_hook function to provide a clean ENV to the hook file, but to reinstate the ENV for the next build.

nt commented May 17, 2011

Hello @jkamenik,

I am currently runnin into some trouble with my CI Joe setup. It looks like the same bug you encountered. Could you confirm please ?

Thank you,



Your setup seems to be similar to mine. I was using RVM, but because the ENV pollution it would not stay clean CIJoe would only checkout and build 1 time then it would crash. My ci command was rvm use 1.8.7@gemset; bundle install; rake spec. After the first build the gem set would be wrong and cijoe could not handle it. Cleaning the ENV prevents ENV changes from effecting CIJoe.


hey guys,

Thanks for sending in the pull request, I will try to get this tested and merged in the next day or so.

nt commented May 18, 2011

Thanks @jkamenik. I tried your patch, it worked like a breeze. I'm up and running :)
Cheers from France.


Ah, this is just what I need! Hope this gets merged in :)


Yes please!


+1 fixes it for me

@queso queso merged commit 7c7ea5d into defunkt:master Jun 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment