I see other issues here that report of conflicts with EnvInject and/or MultiJob. Both are required for our company's usage.
Simple functional test job in Jenkins configured as:
- [*] Provide Node & npm bin/ folder to PATH
- Execute Shell Script
npm install -g bower
Fails to include appropriate NodeJS installation in PATH:
Started by user Charles Blaine
[EnvInject] - Loading node environment variables.
Building remotely on etc-jenkins-rh7-1 (rh7 rhel7 ruby20) in workspace /var/lib/jenkins/workspace/R701-Data/BowerTest
[WS-CLEANUP] Deleting project workspace...
[BowerTest] $ /bin/bash -xe /tmp/hudson2605021362659101820.sh
+ echo /usr/local/bin:/usr/bin
+ which node
which: no node in (/usr/local/bin:/usr/bin)
Build step 'Execute shell' marked build as failure
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds