Thienv - tach nhanh'

This commit is contained in:
thienqb123456
2025-03-01 01:16:40 +07:00
parent 1044024e65
commit 20d6065d36
@@ -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