The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

how to trigger multiple pipeline from other pipeline ?

Alfarazi
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!
July 29, 2024

 

 

Hi,
I has the two repositorys.
first repository have multiple pipeline like this syntax :

pipelines:

branches:

regression:

- step: *mvn-regression-scheduler

smoketest:

- step: *mvn-regression-pipeline

 

second repository for trigger other repository.
How to execute first repository after the second repository completed?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2024

Hi Alfarazi and welcome to the community!

If you have definitions with branches in your first repository, then these pipelines will run every time there is a commit on the respective branches. If you don't want these pipelines to run automatically on every push to these branches, but only trigger them from the second repository, you can do the following:

1. Create custom pipelines in the first repository:

These pipelines do not get triggered automatically when there are new commits on certain branches.

2. In the second repository, you can use either the trigger pipeline pipe or our API to trigger a certain pipeline on the first repo. This is the pipe:

This is the API endpoint for triggering a pipeline:

You can use the pipe or the API call either in the last step of the second repo's pipeline or in an after-script of a step of the second repo's pipeline:

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

TAGS
AUG Leaders

Atlassian Community Events