Просмотр исходного кода

Merge branch 'feature/ci_jenkins' into 'develop'

Merge of feature/ci_jenkins to develop

See merge request o2oa/o2oa!77
胡起 5 лет назад
Родитель
Сommit
a9852a84b4
1 измененных файлов с 11 добавлено и 3 удалено
  1. 11 3
      Jenkinsfile

+ 11 - 3
Jenkinsfile

@@ -1,16 +1,24 @@
 pipeline {
     agent {label '132'}
     stages {
-        stage('preperation') {
+        stage('Stop Server') {
             steps {
-                catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
+                catchError(buildResult: 'SUCCESS') {
                     sh 'target/o2server/stop_linux.sh'
                 }
+            }
+        }
+        stage('init') {
+            steps {
                 sh 'npm install'
-                sh 'npm run preperation:linux'
                 sh 'npm run clear'
             }
         }
+        stage('dependency') {
+            steps {
+                sh 'npm run preperation:linux'
+            }
+        }
         stage('build') {
             parallel {
                 stage('build server') {