Ver código fonte

modified jenkinsfile

xiaoct 7 anos atrás
pai
commit
2a843ba9bc
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -14,9 +14,10 @@ pipeline {
         }
         }
         stage('Deliver'){
         stage('Deliver'){
             steps {
             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)'
                 input message: 'Finished using the web site? (Click "Proceed" to continue)'
-                sh 'sudo ./jenkins/scripts/kill.sh'
+                sh 'kill $(cat .pidfile)'
             }
             }
         }
         }