diff --git a/jenkins/maps-server-release.jenkinsfile b/jenkins/maps-server-release.jenkinsfile index b2a7754..f5c0f89 100644 --- a/jenkins/maps-server-release.jenkinsfile +++ b/jenkins/maps-server-release.jenkinsfile @@ -69,8 +69,7 @@ pipeline { } echo("Git checkout ${REPO_URL} on ${ref_final} for maps-server release") - git url: "${REPO_URL}", branch: 'main' - sh("git checkout ${ref_final}") + checkout([$class: 'GitSCM', branches: [[name: "${ref_final}" ]], userRemoteConfigs: [[url: "${REPO_URL}"]]]) def MAPS_PRODUCT = "opensearch-maps-server" def MAPS_VERSION = sh (