From ba3467659480895f646177a654305eee4ff678ae Mon Sep 17 00:00:00 2001 From: Divya Madala Date: Wed, 6 Mar 2024 17:32:26 -0800 Subject: [PATCH] make more modifications Signed-off-by: Divya Madala --- jenkins/release/release-branch.jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins/release/release-branch.jenkinsfile b/jenkins/release/release-branch.jenkinsfile index 87b3ff73ca..923f712efa 100644 --- a/jenkins/release/release-branch.jenkinsfile +++ b/jenkins/release/release-branch.jenkinsfile @@ -70,7 +70,8 @@ pipeline { for (component in componentNames) { repoUrl = MANIFEST_OBJ.getRepo(component) - def gitCloneOutput = sh(script: "git ls-remote --exit-code --heads ${repoUrl} ${TARGET_BRANCH}", returnStdout: true, returnStatus: true) + def gitCloneOutput = sh(script: "git ls-remote ${repoUrl} ${TARGET_BRANCH}", returnStdout: true, returnStatus: true) + echo "$gitCloneOutput" if (gitCloneOutput == 0) { echo "Branch already exists" continue