Azure-devops-docs: Determining which pipeline triggered the current pipeline

Created on 11 Feb 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

Assuming my pipeline has multiple pipeline triggers defined, is it possible to determine which trigger 'fired' the current pipeline execution?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 devops-cictech devopprod doc-bug

Most helpful comment

Add the same issue and the only information you get is the Build.Reason == ResourceTrigger

https://developercommunity.visualstudio.com/content/idea/907849/pipeline-trigger-resource-variables.html

All 5 comments

Add the same issue and the only information you get is the Build.Reason == ResourceTrigger

https://developercommunity.visualstudio.com/content/idea/907849/pipeline-trigger-resource-variables.html

@mmisztal1980 -- Maciek, thank you for your question. You may find answers here:

@chatelain-io -- Alexandre, thank you for filing that report.

@steved0x -- Steve, please look into this issue.

It seems to be not available out of the box currently. But on VS dev community a workaround was discussed which uses the DevOps REST API. Hope it helps until a better solution is implemented.
https://developercommunity.visualstudio.com/idea/907849/pipeline-trigger-resource-variables.html

@Michaelvsk interesting find, cheers

@steved0x just wanted to check if there's been any progress here? is it possible to determine which trigger was fired yet?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dtamai picture dtamai  Â·  3Comments

dannyvv picture dannyvv  Â·  3Comments

MJECloud picture MJECloud  Â·  3Comments

anlatsko picture anlatsko  Â·  3Comments

sevaa picture sevaa  Â·  3Comments