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.
Fixed the munging of the env problem that was causing some builds to …
I am currently runnin into some trouble with my CI Joe setup. It looks like the same bug you encountered. Could you confirm please ?
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.
rvm use 1.8.7@gemset; bundle install; rake spec
Thanks for sending in the pull request, I will try to get this tested and merged in the next day or so.
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 :)
+1 fixes it for me