Reputation: 111
My build pipeline triggers upon commits into “main” branch of my Azure Repo, builds my React app, executes custom PS script that copies selected css and js files from build folder to an external system (Dev) – this serves well for Dev.
But I need idea for triggers for Test and Prod pipelines upon successful execution of the build pipeline.
Since I have a single Repo, I can’t use “main” as triggers for them.
Upvotes: 1
Views: 916
Reputation: 9208
You do this by adding a pipeline resource to your release pipeline, defining a pipeline trigger to make the build pipeline's completion automatically queue up the release pipeline.
resources:
pipelines:
- pipeline: build-pipeline
source: build-pipeline
trigger: true
branches:
include:
- main
Upvotes: 3