Procházet zdrojové kódy

modified jenkinsfile

xiaoct před 7 roky
rodič
revize
2a843ba9bc
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  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)'
             }
         }