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

NodeJS plugin 1.1.2 -- PATH not including node + npm

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: nodejs-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.32.2 LTS
      NodeJS Plugin 1.1.2
    • Similar Issues:

      Description

      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
      

        Attachments

          Issue Links

            Activity

            Hide
            nfalco Nikolas Falco added a comment -

            As reported in:

            Workaround is remove EnvInject plugin, or make a custom build of workaround-26583 branch. (this branch will never merge into master, it's a EnvInject plugin issue not nodejs)

            Please before open issue read the how to https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue#Howtoreportanissue-Beforereportingabug

            Show
            nfalco Nikolas Falco added a comment - As reported in: JENKINS-41762 JENKINS-41848 JENKINS-42212 Workaround is remove EnvInject plugin, or make a custom build of workaround-26583 branch. (this branch will never merge into master, it's a EnvInject plugin issue not nodejs) Please before open issue read the how to https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue#Howtoreportanissue-Beforereportingabug

              People

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

                Dates

                Created:
                Updated:
                Resolved: