Can i build, test and depoly multiple repo of bitbucket in single pipeline ?

I want  to  build ,test and deploy multiple project as in single Project's pipeline as i want to test end to end flow .

1 answer

1 accepted

0 vote
Geoff Crain Atlassian Team Nov 07, 2017

Hi Parth,

As Pipelines is repository-centric, we don't support this natively. Though there are a couple of setups you could use, depending on your use case.

The first is if you have dependent repositories. So if you have two things you release independently of each other, but you don't want to release if you've broken an integration point between them.

For this I'd suggest having your Repo #1 pipeline clone Repo #2 and then you can do your E2E testing there. (if both can potentially break the integration, you'd want to do the equivalent in both repositories). For details on how to set up cloning via SSH: https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html.

The second is if the repositories need to be built and deployed together. 

In this case you could use sub repositories, and have your pipeline run on the combined repository.

Hopefully this helps.

Cheers,

Geoff

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,953 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you