-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Jenkins Version 2.394
NodeJS Plugin Version 1.6.0
OS: Linux - 3.10.0-1160.83.1.el7.x86_64
Java: 11.0.18 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
If I have two tools defined, as in the code below. The tools are completely ignored (the version step prints the default tools). If I have just one tools defined (either jdk or nodejs) then it works fine, and that defined tool has the right version (the other one of course has the default version).
Having two tools worked perfectly fine for years, but it fails in the recent version of Jenkins.
pipeline { agent any tools { jdk "8u152" nodejs "Node LTS" } stages { stage('checkout') { steps { checkout([$class: 'GitSCM', branches: scm.branches, extensions: scm.extensions, userRemoteConfigs: scm.userRemoteConfigs]) } } stage('Version Check') { steps { sh "java -version" sh 'node -v' sh 'npm -v' } } } }