AnalysisSystemForRadionuclide/Jenkinsfile

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-05-11 10:44:42 +08:00
pipeline {
agent any
2023-05-11 19:11:40 +08:00
stages {
stage('Stop') {
2023-05-11 10:44:42 +08:00
steps {
2023-05-12 08:53:30 +08:00
sh 'sh /var/lib/jenkins/workspace/stop.sh'
2023-05-11 10:44:42 +08:00
}
}
2023-05-11 19:11:40 +08:00
stage('Build') {
steps {
sh 'mvn -B -DskipTests clean install'
}
}
2023-05-12 08:44:14 +08:00
stage('Start') {
2023-05-11 19:11:40 +08:00
steps {
2023-05-12 08:53:30 +08:00
// // 等待三秒
// 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 &'
2023-05-12 09:14:01 +08:00
// withEnv(['JENKINS_NODE_COOKIE=dontkillme']) {
2023-05-12 09:18:37 +08:00
sh 'sh /var/lib/jenkins/workspace/start.sh'
// }
2023-05-11 19:11:40 +08:00
}
}
// stage('Deploy') {
2023-05-11 18:48:19 +08:00
// steps {
2023-05-11 19:11:40 +08:00
// sh 'echo publish'
2023-05-11 18:48:19 +08:00
// }
// }
2023-05-11 10:44:42 +08:00
}
}
2023-05-11 19:11:40 +08:00