Forum Discussion
LanceLyons
Jun 24, 2022Copper Contributor
Triggering one pipeline after another pipeline finishes in the same project
We have a pipeline that we want to trigger after another pipeline finishes from the "development" branch resources: pipelines: - pipeline: DatabaseIncentives source: Database.Incent...
LanceLyons
Jun 27, 2022Copper Contributor
How does the pipeline DatabaseIncentives that I just added the resource too, know that it should trigger after the Database.Incentives_TestData pipeline has finished? The yaml file is just a text file checked in with the resource added. Does the pipeline name " - pipeline: DatabaseIncentives " have to match the pipeline name that this resource is placed in?
resources:
repositories:
- repository: yamltemplates
type: git
name: Onlife/yamltemplates
- repository: build_scripts
type: git
name: Onlife/devops_build
pipelines:
- pipeline: DatabaseIncentives
source: Database.Incentives_TestData
trigger:
branches:
include:
- development
- LanceLyonsJun 27, 2022Copper ContributorI was able to get this to work using the UI, picking triggers and setting a build completion trigger. I could not do it with just yaml files alone.