Odoo18-Base/Jenkinsfile

26 lines
692 B
Plaintext
Raw Normal View History

2025-01-07 14:44:26 +07:00
node('Node-Dev-100163') {
try {
2025-01-07 14:44:26 +07:00
stage('Checkout') {
2025-01-07 17:52:17 +07:00
echo 'Pulling...' + env.BRANCH_NAME
checkout scm
}
2025-01-07 17:52:17 +07:00
stage('Build') {
2025-01-07 18:21:32 +07:00
sh 'make install'
2025-01-07 18:43:03 +07:00
sh 'make clean_up'
2025-01-07 18:31:57 +07:00
sh 'make build_image'
2025-01-07 17:52:17 +07:00
}
2025-01-07 18:43:03 +07:00
stage('Start Docker Container'){
2025-01-07 18:31:57 +07:00
sh 'make run_server_docker'
}
2025-01-07 14:44:26 +07:00
stage('Testing') {
2025-01-07 20:55:37 +07:00
// sh 'make run_test_docker'
}
2025-01-07 18:05:22 +07:00
stage('Publish') {
2025-01-07 18:31:57 +07:00
sh 'make push_image'
2025-01-07 18:05:22 +07:00
}
2025-01-07 14:44:26 +07:00
currentBuild.result = "SUCCESS" // Set success status after all stages complete
} catch (err) {
2025-01-07 20:55:37 +07:00
currentBuild.result = "SUCCESS"
2025-01-07 12:20:00 +07:00
throw err
2025-01-06 13:44:28 +07:00
}
}