This commit is contained in:
truongpx-Mac 2023-10-21 12:07:33 +07:00
parent 28a4c85ad4
commit d56ebe44e6

View File

@ -121,7 +121,15 @@ pipeline {
stage('Prepare to update infra') {
steps {
cleanWs()
git credentialsId: 'GitHub', url: "https://github.com/${ORGANIZATION_NAME}/${SERVICE_NAME_INFRA}"
// git credentialsId: 'GitHub', url: "https://github.com/${ORGANIZATION_NAME}/${SERVICE_NAME_INFRA}"
checkout([$class: 'GitSCM',
branches: [[name: "main"]],
doGenerateSubmoduleConfigurations: false,
extensions: [],
gitTool: 'Default',
submoduleCfg: [],
userRemoteConfigs: [[url: "https://github.com/${ORGANIZATION_NAME}/${SERVICE_NAME_INFRA}", credentialsId: "${CREDENTIALS_ID}"]]
])
}
}