Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

The bitbucket-pipe-release pipe ignores SSH_KEY when pushing a tag

Edoardo Pirovano March 17, 2023

I'm in the process of trying to release a custom pipe using this automation that you provide, but I'm running into some issues. In particular, I've set the SSH_KEY variable to a base64 encoded key with the right permissions as outlined by the instructions, which is working well for letting the pipe push commits. It is not, however, letting it push new tags. I believe the issue is that the git-tag.sh script in that pipe doesn't actually use the SSH_KEY: only the git-commit.sh one does. I believe copying the logic over to that script (as I've done in this commit on my fork: feel free to use it) would get things working again.

2 answers

0 votes
Edoardo Pirovano March 20, 2023

@Oleksandr KyrdanI see you've commited to that repository recently. Is this something you would be able to help with? Many thanks!

0 votes
Oday Rafeh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2023

@Edoardo Pirovano 

The issue you're facing is due to the git-tag. sh script not utilizing the SSH_KEY.

To resolve this, you can update the git-tag. sh script by incorporating the logic from the git-commit. sh script.

You can use the commit you've made on your fork as a reference.

The steps:

Clone the bitbucket-pipe-release repository.


Modify the git-tag. sh script to use the SSH key.

Copy the relevant logic from the git-commit. sh script.


Test your changes locally to ensure that the script is working correctly with the SSH key.


Commit your changes and push them to your fork.

Edoardo Pirovano March 18, 2023

Thanks @Oday Rafeh I'm aware this is an option. I was hoping someone with the right permissions might merge my fix into the main repository, though, to avoid me having to keep a fork up to date.

Oday Rafeh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2023

Hi @Edoardo Pirovano , 

I understand that you would like to have your changes incorporated into the main repository instead of maintaining a separate fork.

In this case, the best course of action is to submit a pull request (PR) to the original repository with your proposed changes.

You can create a pull request:

  • Make sure you have pushed your changes to your forked repository on Bitbucket.
  • Go to the original repository of the bitbucket-pipe-release.
  • Click on the "Pull requests" tab in the top menu.
  • Click on the "Create a pull request" button.
  • In the "Source" section, choose your forked repository and the branch containing your changes.
  • In the "Destination" section, choose the original repository and the branch you want to merge your changes into (usually the main or master branch).
  • Add a title and a description for your pull request, explaining the changes you've made and their purpose.
  • Click "Create pull request. "


Once you've submitted the pull request, the repository maintainers will review your changes. If they find your changes beneficial and without conflicts, they may choose to merge your changes into the main repository.

Like Igor Stoyanov likes this
Edoardo Pirovano March 19, 2023

Thanks for the instructions, but I do not actually have the permissions to open a pull request on bitbucket-pipe-release: the open pull request button is greyed out.

Like Oday Rafeh likes this
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 24, 2023

@Edoardo Pirovano hi.

Since you already implemented this feature here, please follow the contribution docs to suggest this feature. Please, use Fork (check the docks).

You are welcome and thanks for contribution.

Regards, Igor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events