Skip to content

Commit

Permalink
make more modifications
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <divyaasm@amazon.com>
  • Loading branch information
Divyaasm committed Mar 7, 2024
1 parent 5510fcf commit ba34676
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jenkins/release/release-branch.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba34676

Please sign in to comment.