fix:Jenkinsfile更新:解决Jenkins构建完毕之后会杀死所有衍生进程问题
This commit is contained in:
parent
46b0676415
commit
bb1a9789b4
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
|
@ -13,30 +13,12 @@ pipeline {
|
|||
}
|
||||
stage('Start') {
|
||||
steps {
|
||||
// // 等待三秒
|
||||
// echo sleep 3s
|
||||
// sleep 1
|
||||
// echo sleep 2s
|
||||
// sleep 1
|
||||
// echo sleep 1s
|
||||
// sleep 1
|
||||
//
|
||||
// cd /var/lib/jenkins/workspace/alysisSystemForRadionuclide_main/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 &'
|
||||
|
||||
// withEnv(['JENKINS_NODE_COOKIE=dontkillme']) {
|
||||
// 解决Jenkins构建完毕之后会杀死所有衍生进程问题
|
||||
withEnv(['JENKINS_NODE_COOKIE=dontkillme']) {
|
||||
sh 'sh /var/lib/jenkins/workspace/start.sh'
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
// stage('Deploy') {
|
||||
// steps {
|
||||
// sh 'echo publish'
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user