Forums

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

Trigger multiple pipelines

Georg Duemlein November 1, 2024

Kia ora koutou

Can you please share best practices or patterns related to triggering multiple pipelines for an event?

For example, when pushing to a branch, I want to trigger an infra and an app pipeline.
I tried to keep them in a single pipeline but have problems keeping user-friendly flows.

Instead, I would like to have two pipelines starting when I push. 

I found `atlassian/trigger-pipeline`. Could this be used to trigger custom pipelines from the same repository? Are there other features and approaches I might not be aware of?

Ngā mihi nui

1 answer

1 accepted

1 vote
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
November 1, 2024

Hi George,

I recommend the Atlassian Trigger pipeline.

At my company, we use a pipeline step in our pipelines to trigger each pipeline we need to trigger, and we run each step sequentially to get back the result of the triggered pipeline before running the next step.

I hope this helps.

Regards,

Kristian

Georg Duemlein November 5, 2024

Hi Kristian,

Awesome!

I'll have a look at how this works. 

Do you mean I don't necessarily need to fire and forget the different pipelines, but I can have the "main pipeline" wait?
What happens with manual steps in the "child pipelines"?

So many questions :D

 

Thanks for your info!

Georg

Kristian Walker _Adaptavist_
Community Champion
November 6, 2024

We have our pipelines wait as we have the steps trigger the other pipeline, and this returns its result.

If you have manual steps in a child pipeline, it would cause it to time out, I believe, but we do not use manual steps in child pipelines, so I am not sure what would happen with these.

Like Georg Duemlein likes this

Suggest an answer

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

Atlassian Community Events