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

NodeJS Plugin - v1.1.2 - Not setting the PATH for the node versions installed on Freestyle type projects

XMLWordPrintable

      Version 1.1.2 is no longer setting the PATH in the workspace shell. The groovy API is working when using the following groovy:

      nodejs(nodeJSInstallationName: 'nodejs-4.7.3') {
       sh 'node --version'
      // outputs 4.7.3
      }

      But when using the checkbox "Provide Node & npm bin/ folder to PATH" in a Freestyle project it is not setting the PATH to node and npm to the workspace. 

      It seems like some of the previous updates to make the PATH for the pipeline work may have broke the PATH for the Freestyle projects. 

       

       

            Unassigned Unassigned
            alexleone Alex Leone
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: