diff --git a/Jenkinsfile b/Jenkinsfile index 7f945253..acd78b71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,30 +13,12 @@ pipeline { } stage('Start') { steps { -// // 等待三秒 -// echo sleep 3s -// sleep 1 -// echo sleep 2s -// sleep 1 -// echo sleep 1s -// sleep 1 -// -// cd /var/lib/jenkins/workspace/alysisSystemForRadionuclide_main/jeecg-module-system/jeecg-system-start/target -// -// chmod 755 jeecg-system-start-3.5.1.jar -// -// sh 'nohup java -jar jeecg-system-start-3.5.1.jar &' - -// withEnv(['JENKINS_NODE_COOKIE=dontkillme']) { + // 解决Jenkins构建完毕之后会杀死所有衍生进程问题 + withEnv(['JENKINS_NODE_COOKIE=dontkillme']) { sh 'sh /var/lib/jenkins/workspace/start.sh' -// } + } } } -// stage('Deploy') { -// steps { -// sh 'echo publish' -// } -// } } }