Unable to trigger pipeline upon completion of other pipeline
Original
I am trying to build several release pipelines for our angular apps within devops yaml pipelines. We are using an Nx workspace, so its important to be able to trigger these pipelines at the end of the workspace build.
Here is the sample doc code provided by Microsoft (https://docs.microsoft.com/en-us/azure/devops/pipelines/process/pipeline-triggers?view=azure-devops&tabs=yaml)
# this is being defined in app-ci pipeline
resources:
pipelines:
- pipeline: securitylib # Name of the pipeline resource
source: security-lib-ci # Name of the triggering pipeline
trigger:
branches:
- releases/*
- master
Here is my full pipeline at this point:
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger: none
resources:
pipelines:
- pipeline: WorkspaceBuild
source: OtherPipeline
project: CommonProject
trigger:
branches:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'web-framework'
downloadPath: '$(System.ArtifactsDirectory)'
- script: |
cd $(System.ArtifactsDirectory)
dir .
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
Update
Ok, fixing the naming allows each pipeline to run. However, the build pipeline still does not trigger the deployment pipeline.
Respective Pipelines (UPS1_Workspace build, wf-stg deploys)
Deployment pipeline resources tag
Deployment pipeline triggers settings
Update 2
Hey, this is still not working. I removed all of the CI settings from the triggers ui panel, and ensured that the override box was not ticked. Here are some more images to help with diagnosis