Kaynağa Gözat

修改打包脚本

huqi 5 yıl önce
ebeveyn
işleme
d92a740db6
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 6 2
      Jenkinsfile

+ 6 - 2
Jenkinsfile

@@ -3,8 +3,12 @@ pipeline {
     stages {
     stages {
         stage('preperation') {
         stage('preperation') {
             steps {
             steps {
-                catchError {
-                    sh 'target/o2server/stop_linux.sh'
+                script {
+                    try {
+                        sh 'target/o2server/stop_linux.sh'
+                    } catch (err) {
+                        echo err
+                    }
                 }
                 }
                 sh 'npm install'
                 sh 'npm install'
                 sh 'npm run preperation:linux'
                 sh 'npm run preperation:linux'