Skip to content

Commit

Permalink
fix bitbucket team pipeline when checking repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
cnfait committed Dec 30, 2022
1 parent 766d2e5 commit 54b0bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thirdparty-scms/bbucket/bitbucket-team-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pipelines:
TEST_REPO=$PREFIX-$TEAM-sdlf-stageb
apk add curl
OUTPUT=$(curl -H "Content-Type: application/json" -u ${BBUSER}:${APP_PASS} https://api.bitbucket.org/2.0/repositories/$BITBUCKET_WORKSPACE/$TEST_REPO 2>&1 )
if [[ "$OUTPUT" == *"not found"* ]]; then
if [[ "$OUTPUT" == *"not found"* || "$OUTPUT" == *"no longer exists"* ]]; then
echo "Team does not exist on Bitbucket"
echo -n 1 > team_validation
else
Expand Down Expand Up @@ -121,4 +121,4 @@ pipelines:
https://api.bitbucket.org/2.0/repositories/$BITBUCKET_WORKSPACE/$PREFIX-$TEAM-$REPO_BB/pipelines/
echo "Waiting execution" && sleep 15
done
done
done

0 comments on commit 54b0bd9

Please sign in to comment.