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?
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.