Status: Fixed but Unreleased (View Workflow)
NodeJS plugin 1.2.7
Latest pipeline plugins as of 04/02/2019
Jenkins Tool config:
NodeJs version 8.15.0 - Install automatically - Global packages = "yarn"
We have a Pipeline job that runs steps in parallel across three nodes - one Ubuntu, one Mac, one Windows. Some time recently (we're not exactly sure when), it started downloading the wrong node package to the machines, e.g. downloading "node-v8.15.0-darwin-x64.tar.gz" to the Windows machine.
Even when it does (randomly?) select the correct package, we're unable to build, since the windows logic in NodeJSInstaller doesn't fire, so it uses an incorrect command.
I've cut everything down to a minimal Jenkinsfile that reproduces the issue for us. See screenshots for the console output.
It works fine if not run in parallel. I've also tried the OS detection logic in the Jenkins console and it works fine there, too: