This commit is contained in:
hoangvv 2025-01-08 00:36:16 +07:00
parent 7e8fdefd2f
commit 4eb7d2b9a5
2 changed files with 4 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -8,7 +8,7 @@ node('Node-Dev-100163') {
sh 'make clean_up'
}
stage('Build') {
sh 'sed -i s/TAG := \$(shell rev-parse --abbrev-ref HEAD)/TAG := ${env.BRANCH_NAME}/g Makefile'
sh './setup/update_tag.sh ${env.BRANCH_NAME}'
sh 'make install'
sh 'make stop_server_docker'
sh 'make gen_config'

3
setup/update_tag.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/bash
sed -i "s/TAG := \$(shell rev-parse --abbrev-ref HEAD)/TAG := $1/g" Makefile