Sfoglia il codice sorgente

Merge branch 'feature/jenkins_release' into 'release'

Merge of feature/jenkins_release to release

See merge request o2oa/o2oa!281
胡起 5 anni fa
parent
commit
5402add04b
1 ha cambiato i file con 3 aggiunte e 6 eliminazioni
  1. 3 6
      Jenkinsfile_release

+ 3 - 6
Jenkinsfile_release

@@ -16,7 +16,7 @@ pipeline {
         }
         stage('dependency') {
             steps {
-                sh 'npm run preperation:linux'
+                sh 'npm run preperation:win'
             }
         }
         stage('build') {
@@ -36,15 +36,12 @@ pipeline {
         }
         stage('deploy') {
             steps {
-                sh 'npm run deploy:linux'
-                sh 'chmod 777 -R target/o2server/jvm'
-                sh 'chmod 777 -R target/o2server/commons'
-                sh 'chmod 777 target/o2server/*.sh'
+                sh 'npm run deploy:win'
             }
         }
         stage('run') {
             steps {
-                sh 'JENKINS_NODE_COOKIE=dontKillMe nohup target/o2server/start_linux.sh > nohup.out &'
+                sh 'JENKINS_NODE_COOKIE=dontKillMe start /min target/o2server/start_windows.bat>>output.txt'
             }
         }
     }