diff --git a/Jenkinsfile b/Jenkinsfile index 0886221..f6558ea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,18 +3,12 @@ pipeline { environment { CI = 'true' - } - node { - env.NODEJS_HOME = "${tool 'Node 6.x'}" - // on linux / mac - env.PATH="${env.NODEJS_HOME}/bin:${env.PATH}" - // on windows - //env.PATH="${env.NODEJS_HOME};${env.PATH}" - sh 'npm --version' -} + stages { stage('Build') { steps { + nodejs(nodeJSInstallationName: 'Node 6.x', configId: '') { + sh 'npm config ls' sh 'npm install' }