瀏覽代碼

modify jenkinsfile

huqi 5 年之前
父節點
當前提交
af43238b10
共有 1 個文件被更改,包括 11 次插入10 次删除
  1. 11 10
      Jenkinsfile

+ 11 - 10
Jenkinsfile

@@ -10,20 +10,21 @@ pipeline {
                 sh 'npm run preperation:linux'
                 sh 'npm run preperation:linux'
             }
             }
         }
         }
-        parallel {
-            stage('build server') {
-                steps {
-                    sh 'id'
-                    sh 'npm run build_server'
+        stage('build') {
+            parallel {
+                stage('build server') {
+                    steps {
+                        sh 'id'
+                        sh 'npm run build_server'
+                    }
                 }
                 }
-            }
-            stage('build web') {
-                steps {
-                    sh 'npm run build_web'
+                stage('build web') {
+                    steps {
+                        sh 'npm run build_web'
+                    }
                 }
                 }
             }
             }
         }
         }
-
         stage('deploy') {
         stage('deploy') {
             steps {
             steps {
                 sh 'npm run deploy:linux'
                 sh 'npm run deploy:linux'