From d56ebe44e649c9a88ac779c99118229f14e379dc Mon Sep 17 00:00:00 2001 From: truongpx-Mac Date: Sat, 21 Oct 2023 12:07:33 +0700 Subject: [PATCH] update --- jenkins-deploy/jenkinsfiles/api.jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jenkins-deploy/jenkinsfiles/api.jenkinsfile b/jenkins-deploy/jenkinsfiles/api.jenkinsfile index 26e59032f..30cd4effd 100644 --- a/jenkins-deploy/jenkinsfiles/api.jenkinsfile +++ b/jenkins-deploy/jenkinsfiles/api.jenkinsfile @@ -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}"]] + ]) } }