Browse Source

add nvm versin

amenpunk 4 years ago
parent
commit
25a7b96964
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Jenkinsfile

+ 6 - 2
Jenkinsfile

@@ -12,12 +12,16 @@ pipeline {
         }
         stage('install dependencies') {
             steps {
-                sh 'npm install'
+                nvm( version : '12.22.9' ){
+                    sh 'npm install'
+                }
             }
         }
         stage('build') {
             steps {
-                sh 'npm run build'
+                nvm( version : '12.22.9' ){
+                    sh 'npm run build'
+                }
             }
         }
     }