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

nodejs installer not compatible with declarative pipeline definition

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: nodejs-plugin
    • Labels:
    • Similar Issues:

      Description

      The following pipeline does not work, as NodeJSInstallation seems not to add node and npm to the classpath.

      pipeline {
      
        tools {
          "jenkins.plugins.nodejs.tools.NodeJSInstallation" "NodeJS_0.10.33"
        }
      
        agent any
        stages {
      
          stage ('test') {
            steps {
                sh "node --version"
                sh "npm --version"
            }
          }
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nfalco Nikolas Falco
                Reporter:
                imod Dominik Bartholdi
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: