Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

The pipe bitbucket-pipe-release:5.6.0 fails to commit changes to the master branch

dillan February 18, 2024

I'm working on creating my first Bitbucket Pipe (https://bitbucket.org/dillan/spectral-pipe) and following the steps described in the documentation. When attempting to release I go to merge into `master` when trying to Push and Tag the release.

It successfully goes to Docker Hub, but changes (e.g. CHANGELOG.md, pipe.yml) are not being committed back to the repository, failing with the following pipeline error.

Screen Shot 2024-02-18 at 4.50.17 PM.png

/bitbucket-pipelines.yml

image:
name: atlassian/default-image:3

test: &test
step:
name: Test
script:
- npm install -g bats
- chmod a+x test/*.bats
- bats test/test.bats
services:
- docker

push: &push
step:
name: Push and Tag
image: python:3.10
script:
- pipe: atlassian/bitbucket-pipe-release:5.6.0
variables:
REGISTRY_USERNAME: $REGISTRY_USERNAME
REGISTRY_PASSWORD: $REGISTRY_PASSWORD
IMAGE: myImage/$BITBUCKET_REPO_SLUG
services:
- docker

pipelines:
default:
- <<: *test
branches:
master:
- <<: *test
- <<: *push

 
According to the bitbucket-pipe-release README Details section, I should:

Configure repository ssh key pair and it will be safely used in pipeline to push to current repository.


I've done so in Repository Settings > Pipelines > SSH Keys as shown below:

Screen Shot 2024-02-18 at 5.10.17 PM.png

I double checked, and I do have a `master` branch created. How can I address this issue so that the changes are committed back to the repo and the pipeline can complete successfully?

1 answer

2 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2024

Hi Dillan,

If you have generated an SSH key pair, then you need to add the public SSH key to your account's SSH keys here: https://bitbucket.org/account/settings/ssh-keys/

Alternatively, you can also delete the SSH key pair from the Repository settings, and then the http proxy and http origin will be used to push (no configuration is needed from your side).

Please feel free to let me know how it goes.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events