浏览代码

Merge branch 'feature/add_jenkinsfile' into 'develop'

Merge of feature/add_jenkinsfile to develop

See merge request o2oa/o2oa!67
胡起 5 年之前
父节点
当前提交
04753f620b
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      Jenkinsfile

+ 8 - 2
Jenkinsfile

@@ -4,7 +4,7 @@ pipeline {
         stage('preperation') {
             steps {
                 sh 'npm install'
-                sh 'npm run preperation'
+                sh 'npm run preperation:linux'
             }
         }
         stage('build server') {
@@ -20,7 +20,13 @@ pipeline {
         }
         stage('deploy') {
             steps {
-                sh 'npm run deploy'
+                sh 'npm run deploy:linux'
+                sh 'chmod 777 target/o2server/*.sh'
+            }
+        }
+        stage('run') {
+            steps {
+                sh '/target/o2server/start_linux.sh'
             }
         }
     }