From 81e41163a3ecb27f8a622747c03c3567dc0db513 Mon Sep 17 00:00:00 2001 From: orgin Date: Fri, 12 May 2023 08:44:14 +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 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1af72b5d..779a6693 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,9 +11,21 @@ pipeline { sh 'mvn -B -DskipTests clean install' } } - stage('Start'){ + stage('Start') { steps { - sh '/var/lib/jenkins/workspace/start.sh' + # 等待三秒 + echo sleep 3s + sleep 1 + echo sleep 2s + sleep 1 + echo sleep 1s + sleep 1 + + cd /var/lib/jenkins/workspace/alysisSystemForRadionuclide_main@2/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 &' } } // stage('Deploy') {