I\'m facing an issue with a Jenkins pipeline in a Jenkinsfile. I have 4 different nodeJs versions on my Jenkins instance. I would like to choose which one I\'m going to use in m
pipeline { agent { label 'slave-machine' } environment { NODE_HOME = tool name: 'Node 10.13.0', type: 'jenkins.plugins.nodejs.tools.NodeJSInstallation' } stages { stage('test') {] steps { script { env.PATH="${env.NODE_HOME}/bin:${env.PATH}" sh 'node -v' sh 'echo $NODE_HOME' } } } } }