Azure-devops-docs: Build.Reason documented incorrectly for triggered pipeline

Created on 4 Mar 2020  路  1Comment  路  Source: MicrosoftDocs/azure-devops-docs

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
Pri3 doc-bug

Most helpful comment

Thanks @michaelstaszewski! I've verified this and will update the article shortly.

>All comments

Thanks @michaelstaszewski! I've verified this and will update the article shortly.

Was this page helpful?
0 / 5 - 0 ratings