Assume if a scheduled azure devops YAML pipeline run fails and if anyone re-run the pipeline from the failed job. The pipeline is not able to show who has triggered the re-run.
I tried using $(Build.Requestedfor) and $(Build.QueuedBy) variables. But no luck.
Here is why, Since the pipeline got triggered initially from the schedule, the value for the above mentioned variables is shown as “[Microsoft.VisualStudio.Services.TFS]” no matter how many times you re-run the pipeline from the failed job.
Is there a way how to fetch user name who had re-run the pipeline from the failed job. If not, does anyone have a work around for it.
Thanks