Reputation: 1296
I have a deployment pipeline that should run when the build pipeline completes. Here's the yaml:
resources:
pipelines:
- pipeline: BuildPipeline
source: buildpipelinename
trigger: true
I have set the Default branch for manual and scheduled builds
for both the source (build) and triggered (deploy) pipelines to the correct branch, and the build pipeline creates an artifact. If I run the deployment pipeline manually, the latest build artifacts download as expected - the problem is only the trigger. This used to work and I don't know what changed. I have reverted my changes to the entire file since the last successful automatic deployment and deleted all other branches from my repo with no luck. Any help would be appreciated!
Upvotes: 0
Views: 1544
Reputation: 698
Tested here on a new project with pipeline1 and pipeline2. Pipeline2 successfully triggered when pipeline1 completes.
Possibly a bug with your project/azure devops. Try renaming the source pipeline and updating the trigger to the new value and see if that helps.
#pipeline2.yml
resources:
pipelines:
- pipeline: pipeline1
source: pipeline1
trigger: true
Upvotes: 0