30 lines
810 B
Groovy
30 lines
810 B
Groovy
node('Node-Dev-100163') {
|
|
try {
|
|
stage('Checkout') {
|
|
echo 'Pulling...' + env.BRANCH_NAME
|
|
checkout scm
|
|
}
|
|
stage('Build') {
|
|
sh 'make install'
|
|
sh 'make stop_server_docker'
|
|
sh 'make gen_config'
|
|
sh 'make build_image'
|
|
}
|
|
stage('Start Docker Container'){
|
|
sh 'make run_server_docker'
|
|
}
|
|
stage('Testing') {
|
|
sh 'make run_test_docker'
|
|
}
|
|
stage('Publish') {
|
|
sh 'make push_image'
|
|
}
|
|
// stage('Cleanup') {
|
|
// sh 'make clean_up'
|
|
// }
|
|
currentBuild.result = "SUCCESS" // Set success status after all stages complete
|
|
} catch (err) {
|
|
currentBuild.result = "FAILURE"
|
|
throw err
|
|
}
|
|
} |