Thienv - tach nhan p4

This commit is contained in:
thienqb123456
2025-03-01 01:32:01 +07:00
parent 02c34eb722
commit 4785b99e76
@@ -45,11 +45,18 @@ pipeline {
stage('Configure GIT_BRANCH') { stage('Configure GIT_BRANCH') {
steps { steps {
script { script {
script {
echo "params.PORTAL_NAME: ${params.PORTAL_NAME}"
echo "KTDT_BRANCH: ${env.KTDT_BRANCH}"
echo "HNT_BRANCH: ${env.HNT_BRANCH}"
if (params.PORTAL_NAME == 'ktdt') { if (params.PORTAL_NAME == 'ktdt') {
env.GIT_BRANCH = env.KTDT_BRANCH env.GIT_BRANCH = env.KTDT_BRANCH
} else if (params.PORTAL_NAME == 'hnt') { } else if (params.PORTAL_NAME == 'hnt') {
env.GIT_BRANCH = env.HNT_BRANCH 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}"
} }