Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42323

NodeJS plugin 1.1.2 -- PATH not including node + npm

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • nodejs-plugin
    • None
    • Jenkins 2.32.2 LTS
      NodeJS Plugin 1.1.2

      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:

      1. [*] Provide Node & npm bin/ folder to PATH
      2. Execute Shell Script
        echo $PATH
        which node
        which npm
        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...
      [WS-CLEANUP] Done
      [BowerTest] $ /bin/bash -xe /tmp/hudson2605021362659101820.sh
      + echo /usr/local/bin:/usr/bin
      /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
      Finished: FAILURE
      

            Unassigned Unassigned
            jblaine Jeff Blaine
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: