Thienv - tach nhan p4

This commit is contained in:
thienqb123456
2025-03-01 01:32:01 +07:00
parent 02c34eb722
commit 4785b99e76
@@ -45,10 +45,17 @@ pipeline {
stage('Configure GIT_BRANCH') { stage('Configure GIT_BRANCH') {
steps { steps {
script { script {
if (params.PORTAL_NAME == 'ktdt') { script {
env.GIT_BRANCH = env.KTDT_BRANCH echo "params.PORTAL_NAME: ${params.PORTAL_NAME}"
} else if (params.PORTAL_NAME == 'hnt') { echo "KTDT_BRANCH: ${env.KTDT_BRANCH}"
env.GIT_BRANCH = env.HNT_BRANCH echo "HNT_BRANCH: ${env.HNT_BRANCH}"
if (params.PORTAL_NAME == 'ktdt') {
env.GIT_BRANCH = env.KTDT_BRANCH
} else if (params.PORTAL_NAME == 'hnt') {
env.GIT_BRANCH = env.HNT_BRANCH
}
echo "Branch được thiết lập là: ${env.GIT_BRANCH}"
} }
} }
echo "Branch được thiết lập là: ${env.GIT_BRANCH}" echo "Branch được thiết lập là: ${env.GIT_BRANCH}"