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

Push to another Bitbucket repo with pipeline

Carlos Gallardo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2023

HI, i got 2 bitbucket repos in different accounts that need to sync when pushing into a staging branch in the first one it needs to push into the second repo, created the SSH key in the first one and added in the second one

this is my pipeline

branches:

branch-stg:
     - step:
        name: Push to STG
        script:
          - git remote add staging git@bitbucket.org:target-account/target-repo.git
          - echo $'Host *.bitbucket.org\n\tStrictHostKeyChecking no' >> ~/.ssh/config
          - git push staging branch-stg -f

1 answer

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2023

Hello @Carlos Gallardo and welcome to the Community!

It seems like you have also opened an internal ticket about the same topic and one of our support engineers is already working on that case. 

With that in mind, I would suggest focusing the discussion on the internal ticket to avoid any confusion that may arise from discussing the same issue in multiple places.

Once the ticket is resolved, if you feel comfortable, you can also share the resolution here in Community, so other users can try using the same solution in case they come across a similar scenario.

Thank you, @Carlos Gallardo !

Patrik S

Carlos Gallardo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 17, 2023

Thanks Patrik 

Carmelo Francisco Gonzalez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 28, 2023

cfg

Suggest an answer

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

Atlassian Community Events