Explorar o código

add nvm versin

amenpunk %!s(int64=4) %!d(string=hai) anos
pai
achega
25a7b96964
Modificáronse 1 ficheiros con 6 adicións e 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'
+                }
             }
         }
     }