Assuming my pipeline has multiple pipeline triggers defined, is it possible to determine which trigger 'fired' the current pipeline execution?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Add the same issue and the only information you get is the Build.Reason == ResourceTrigger
@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?
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