Browse Source

modified jenkinsfile

xiaoct 7 years ago
parent
commit
2a843ba9bc
1 changed files with 3 additions and 2 deletions
  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)'
             }
         }