Parcourir la source

add nvm versin

amenpunk il y a 4 ans
Parent
commit
25a7b96964
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  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'
+                }
             }
         }
     }