huqi 5 лет назад
Родитель
Сommit
46a4e88909
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      Jenkinsfile

+ 8 - 2
Jenkinsfile

@@ -4,7 +4,7 @@ pipeline {
         stage('preperation') {
         stage('preperation') {
             steps {
             steps {
                 sh 'npm install'
                 sh 'npm install'
-                sh 'npm run preperation'
+                sh 'npm run preperation:linux'
             }
             }
         }
         }
         stage('build server') {
         stage('build server') {
@@ -20,7 +20,13 @@ pipeline {
         }
         }
         stage('deploy') {
         stage('deploy') {
             steps {
             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'
             }
             }
         }
         }
     }
     }