I am running the following docker image jenkinsci/jenkins:2.0-rc-1 to try out jenkins 2.0, and the \"pipeline\" view.
jenkinsci/jenkins:2.0-rc-1
I can\'t seem to install node. Here\'s
For me work next code:
node(){ def nodeHome = tool 'nodejs5' env.PATH="${env.PATH}:${nodeHome}/bin" ... sh 'npm install' }
nodejs5 is the name of the tool specified in Jenkins configuration.