I am trying to get the name of the agent that executed a given build from the TFS Web API.
There is a LOT of great details in there, but the Agent that ran the build does not seem to be in there. This is a surprise to me.
You have to go to the timeline of the build:
https://docs.microsoft.com/en-us/rest/api/vsts/build/timeline/get?view=vsts-rest-4.1
This will return a Timeline
, which has an array of TimelineRecords
. The workerName
of the timeline records contains the name of the agent running the operation.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.