Explorar el Código

add nvm versin

amenpunk hace 4 años
padre
commit
25a7b96964
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  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'
+                }
             }
         }
     }