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

Tools not inserted into $PATH

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • nodejs-plugin
    • None
    • Jenkins 2.45
      NodeJS 1.0.1

      When running a Job with:
      Provide Node & npm bin/ folder to PATH: Checked

      Execute shell containing any npm, node or other command related. Seems to have failed.

      Used automatic installation with NodeJS 4.3.2
      17:01:48 /tmp/hudson7944192678671729821.sh: line 2: npm: command not found

      Steps to Reproduce:
      Install NodeJS

      1. Click on Manage Jenkins from the Dashboard
      2. Click on Global Tool Configuration
      3. Click NodeJS installations...
      4. Click Add NodeJS
      5. Name: 4.3.2
      6. Check: Install Automatically
      7. Installation: NodeJs 4.3.2
      8. Global Installation: mocha chai serverless
      9. Global npm packages refresh hours: 72
      10. Click Save

      Validate installation

      $JENKINS_HOME/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/4.3.2

      should exist

      Create and Run Job

      1. Create a freestyle job
      2. Check box for:Provide Node & npm bin/ folder to PATH
      3. Execute Shell Containing: echo $PATH; npm --version

            Unassigned Unassigned
            hdost Harold Dost
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: