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

nodejs installer not compatible with declarative pipeline definition

XMLWordPrintable

      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"
            }
          }
        }
      }
      

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

              Created:
              Updated:
              Resolved: