How to set pipelines setup dependency on another repo pipelines ?

Dinesh Kumar February 26, 2021

HI All,

 

Greeting  of the day!.

 

I have a scenario which required your help.I have to Repos one for Terraform and another for Nodejs code deploy to lambda.

1 Terraform Repo - its setup/refresh the infra required  to deploy Node.js code.

2. Node.js Repo - it build the code and deploy to the lambda.

 

Now I want to set when deployment steps starts on nodejs repo. it should run first terrfrom steps from terrform repo bitbucket pipelines.

Please help. Thanks in advance

 

1 answer

0 votes
Eddie Webbinaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2021

There is not pipeline chaining/orchestration across repositories.  Is the terraform repo shared, or another reason not to embed in the same repo?

Since node.js seems to be driving the lifecyle, you could just add a checkout of the dependent repository and invoke terraform there. https://bitbucket.org/blog/cloning-another-bitbucket-repository-in-bitbucket-pipelines

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events