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

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

0 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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events