diff --git a/fe/fe-portal/ci-uat-portal-frontend.Jenkinsfile b/fe/fe-portal/ci-uat-portal-frontend.Jenkinsfile index 8e45fcb..c4c041a 100644 --- a/fe/fe-portal/ci-uat-portal-frontend.Jenkinsfile +++ b/fe/fe-portal/ci-uat-portal-frontend.Jenkinsfile @@ -7,7 +7,9 @@ pipeline { environment { GIT_CREDENTIALSID = 'b03f36c4-bba3-4764-94ca-b620651b2a68' GIT_URL = 'http://work.gct.com.vn/anhln/PORTAL_2025.git' - GIT_BRANCH = 'main' + + KTDT_BRANCH = 'uat_kinhtedothi' + HNT_BRANCH = 'uat_hanoitimes' ENV = 'uat' PROJECT_NAME = 'portal' @@ -38,6 +40,19 @@ pipeline { TELEGRAM_BOT_TOKEN = credentials('TELEGRAM_BOT_TOKEN') } stages { + stage('Configure GIT_BRANCH') { + steps { + script { + if (params.PORTAL_NAME == 'ktdt') { + env.GIT_BRANCH = env.KTDT_BRANCH + } else if (params.PORTAL_NAME == 'hnt') { + env.GIT_BRANCH = HNT_BRANCH + } + } + echo "Branch được thiết lập là: ${env.GIT_BRANCH}" + } + } + stage('Checkout') { steps { // Checkout mã nguồn từ Gitea