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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,764
Community Members
 
Community Events
176
Community Groups

Is is possible to deploy all different repositories by single pipeline

I have 4 different repository in my project and I would like to deploy all of them at once into my salesforce sandbox instance ( even if there is no changes done in those repositories)

 

Could you please share any sample deployment code to achieve this.

 

Thank you

1 answer

0 votes
Patrik S Atlassian Team Jul 14, 2022

Hello @M_kulshershtha ,

Welcome to Atlassian Community!

It's not currently possible to configure only one pipeline that applies to multiple repositories, as each repository has its own bitbucket-pipelines.yml file.

One alternative I can think of to achieve the deployment of multiple repositories is that you could set up a pipeline in one of those repositories, and as part of this pipeline's script you could clone the other repositories, so you can deploy all of them is just one pipeline :

Let's say we configure the pipeline in repo_a , and want to clone repo_b and repo_c , the bitbucket-pipelines.yml file would look like the following: 

pipelines:
  default:
    - step:
        script:
          - git clone git@bitbucket.org:my_workspace/repo_b.git
- git clone git@bitbucket.org:my_workspace/repo_c.git
- #command to deploy folder repo_a, repo_b and repo_c

In order to clone different repositories in your pipeline as the example above, which uses SSH, you will have to configure the authentication, generating a pipeline SSH key in the repo where you configured the pipeline and adding this key as an access key in the other repositories being cloned. Detailed steps on how to configure it are outlined in the following blogpost :

Hope that helps! Let me know in case you have any questions.

Thank you, @M_kulshershtha .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events