From bb1a9789b4b9b5ab8efcad1e943927b5e7138b2a Mon Sep 17 00:00:00 2001 From: orgin Date: Fri, 12 May 2023 09:38:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:Jenkinsfile=E6=9B=B4=E6=96=B0=EF=BC=9A?= =?UTF-8?q?=E8=A7=A3=E5=86=B3Jenkins=E6=9E=84=E5=BB=BA=E5=AE=8C=E6=AF=95?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E4=BC=9A=E6=9D=80=E6=AD=BB=E6=89=80=E6=9C=89?= =?UTF-8?q?=E8=A1=8D=E7=94=9F=E8=BF=9B=E7=A8=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) 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' -// } -// } } }