-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins 2.47
NodeJS Plugin 1.1.0
I have a simple test declarative pipeline like below.
pipeline { agent any tools { jdk 'Java 8 JDK u25' maven 'Maven 3.2.3' nodejs 'NodeJS 6.9.1' } stages { stage('Test') { steps { sh 'printenv' sh 'java -version' sh 'mvn --version' sh 'npm --version' } } } }
If I comment out the nodejs and npm lines everything works as expected. However, when I include the nodejs and npm lines, I get the following error:
[jenkinsfile-test_master-JTGJ7AHME5RPKMDJQ2JWSQLE3GQU7TWXQ2QD3USIDK5QXIBGNM3A] Running shell script nohup: failed to run command ‘sh’: No such file or directory
- duplicates
-
JENKINS-41947 PATH value is being overwritten in declarative pipeline syntax
- Resolved