Explorar el Código

modified jenkinsfile

xiaoct hace 7 años
padre
commit
2a843ba9bc
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -14,9 +14,10 @@ pipeline {
         }
         stage('Deliver'){
             steps {
-                sh 'sudo ./jenkins/scripts/deliver.sh'
+                sh 'npm run build'
+                sh 'echo $! > .pidfile'
                 input message: 'Finished using the web site? (Click "Proceed" to continue)'
-                sh 'sudo ./jenkins/scripts/kill.sh'
+                sh 'kill $(cat .pidfile)'
             }
         }