This commit is contained in:
hoangvv 2025-01-07 18:21:32 +07:00
parent 0ac737be65
commit 5ce42e9211

23
Jenkinsfile vendored
View File

@ -5,28 +5,19 @@ node('Node-Dev-100163') {
checkout scm checkout scm
} }
stage('Build') { stage('Build') {
steps{ sh 'make install'
sh 'make install' sh 'make push-image'
sh 'make push-image' sh 'make build-image'
sh 'make build-image'
}
} }
stage('Start Docker Container'){ stage('Start Docker Container'){
steps{ sh 'make clean_up'
sh 'make clean_up' sh 'make run-server-docker'
sh 'make run-server-docker'
}
} }
stage('Testing') { stage('Testing') {
steps{ sh 'make run_test_docker'
sh 'make run_test_docker'
}
} }
stage('Publish') { stage('Publish') {
steps{ sh 'make push-image'
sh 'make push-image'
}
} }
currentBuild.result = "SUCCESS" // Set success status after all stages complete currentBuild.result = "SUCCESS" // Set success status after all stages complete
} catch (err) { } catch (err) {