In my Bitbucket Pipelines build, I want to delete a branch using
git push origin --delete $BITBUCKET_BRANCH
But then I get the following error:
Pipelines: Authentication failed for 'https://x-token-auth:{access_token}@bitbucket.org/.../'How can I set up my Pipelines build so that it can push to origin?
I assume one could generate an SSH key, put that inside the docker image (or inside the repo, encrypted) and add that to a Bitbucket account. However, I guess there may be an easier way you guys had in mind for this scenario.