The predefined pipeline vars topic says Build.Reason would be "BuildCompletion" when a pipeline is triggered by another, but I'm seeing "ResourceTrigger" as the actual value.
https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml
My triggered pipeline triggers block is as follows...
trigger:
branches:
exclude:
- '*'
pr:
branches:
exclude:
- '*'
resources:
pipelines:
- pipeline: pipeline-alias
source: pipeline-name
trigger:
branches:
include:
- master
Thanks @michaelstaszewski! I've verified this and will update the article shortly.
Most helpful comment
Thanks @michaelstaszewski! I've verified this and will update the article shortly.