We need the ablility to reproduce older builds. So in the future we will need to build with the older version of Node.js along with the future versions for future builds. This is all on one build machine.
I run into this all the time, not just on the Bamboo server, but on my local dev machine. I have found Node Version Manager (nvm) to be a huge help for both cases. To install a given version (and keep it around), just do "nvm install 0.10". In a Bamboo build, you would just run a script task for "nvm use 0.10" then you can kick off your build however you would normally.
This is great post and quite simple. By setting a default version nvm alias default <version>, any other shell that opens will use this. Then in my build job, I just add a script shell and call nvm use <myVersion> and run the build. When finished, no harm done. Everything (other builds) just looks the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.