fix:Jenkinsfile更新
This commit is contained in:
parent
7cb5959fe6
commit
81e41163a3
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -11,9 +11,21 @@ pipeline {
|
||||||
sh 'mvn -B -DskipTests clean install'
|
sh 'mvn -B -DskipTests clean install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Start'){
|
stage('Start') {
|
||||||
steps {
|
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') {
|
// stage('Deploy') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user