fix:Jenkinsfile更新

This commit is contained in:
orgin 2023-05-12 08:44:14 +08:00
parent 7cb5959fe6
commit 81e41163a3

16
Jenkinsfile vendored
View File

@ -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') {