From 435f6c0e319b8cb0cc3b22a5a3378e4fe926dbb4 Mon Sep 17 00:00:00 2001 From: orgin <feixingyuanup@gmail.com> Date: Fri, 12 May 2023 09:18:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:Jenkinsfile=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3b0929c9..068af15a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,9 @@ pipeline { // // sh 'nohup java -jar jeecg-system-start-3.5.1.jar &' - sh 'BUILD_ID=dontKillMe /var/lib/jenkins/workspace/start.sh' + withEnv(['JENKINS_NODE_COOKIE=dontkillme']) { + sh 'sh /var/lib/jenkins/workspace/start.sh' + } } } // stage('Deploy') {