I just updated our setup to the new 1.1.1 version of the Nodejs Plugin and experienced problems with the EnvInject Plugin. I tracked it down to a change between Version 0.2.2 and 1.0.0 in the Nodejs plugin.
Steps to reproduce:
1. Disable all plugins
2. Install Nodejs and EnvInject Plugin (Environment Inject in the plugin list)
3. Create a Nodejs configuration that installs an arbitrary version from nodejs.org (e.g. 6.9.3)
4. Create a test job with nothing enabled but "Provide Node & npm bin/ folder to PATH" with the created nodejs configuration and the system wide npmrc
5. Add "Execute shell script" with "which node; which npm; node -v; npm -v"
Even though the EnvInject plugin is only enabled as a plugin, but not configured in the job ("Inject environment variables to the build process" is unticked) the result of the job looks like this:
When I disable the EnvInject plugin in the plugin list the output looks as expected:
I hope this problem can be fixed, because both plugins are very important for us.
Thank you in advance!