fix:Jenkinsfile更新

This commit is contained in:
orgin 2023-05-12 08:53:30 +08:00
parent aa990da6b0
commit faac09eac9

29
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ pipeline {
stages { stages {
stage('Stop') { stage('Stop') {
steps { steps {
sh '/var/lib/jenkins/workspace/stop.sh' sh 'sh /var/lib/jenkins/workspace/stop.sh'
} }
} }
stage('Build') { stage('Build') {
@ -13,19 +13,20 @@ pipeline {
} }
stage('Start') { stage('Start') {
steps { steps {
// 等待三秒 // // 等待三秒
echo sleep 3s // echo sleep 3s
sleep 1 // sleep 1
echo sleep 2s // echo sleep 2s
sleep 1 // sleep 1
echo sleep 1s // echo sleep 1s
sleep 1 // sleep 1
//
cd /var/lib/jenkins/workspace/alysisSystemForRadionuclide_main/jeecg-module-system/jeecg-system-start/target // cd /var/lib/jenkins/workspace/alysisSystemForRadionuclide_main/jeecg-module-system/jeecg-system-start/target
//
chmod 755 jeecg-system-start-3.5.1.jar // chmod 755 jeecg-system-start-3.5.1.jar
//
sh 'nohup java -jar jeecg-system-start-3.5.1.jar &' // sh 'nohup java -jar jeecg-system-start-3.5.1.jar &'
sh 'sh /var/lib/jenkins/workspace/start.sh'
} }
} }
// stage('Deploy') { // stage('Deploy') {