TfsExtensions icon indicating copy to clipboard operation
TfsExtensions copied to clipboard

Pass Build.TriggeredBy.BuildId predefined variable as build parameter in Trigger Build Task

Open bencemali opened this issue 1 year ago • 1 comments

When using the built-in build completion trigger in azure devops, the predefined variable Build.TriggeredBy.BuildId is set to the build id of the triggering build. The Trigger Build Task could pass the value of Build.BuildId as an additional parameter with the name Build.TriggeredBy.BuildId to the triggered build, thus avoiding confusion. Right now the following can be added as a "workaround" to the additional build parameters to achieve this:

{"Build.TriggeredBy.BuildId" : "$(Build.BuildId)" }

bencemali avatar Sep 05 '24 13:09 bencemali

Hi @bencemali

Thanks a lot for sharing this. This was either not yet available when I started creating the task or I was unaware of it.

I right now don't plan any updates on the task, so I'll leave this issue open so it might help others. If I'd update the task going forward, I'll include this though, it seems straight forward enough. In that case, I'd be notifying you here.

huserben avatar Sep 12 '24 17:09 huserben