Warm tip: This article is reproduced from stackoverflow.com, please click
azure-pipelines

get build agent information for build

发布于 2020-03-27 10:27:01

Our application is called by the build-successful event web hook of Azure Pipelines. Is there a way to obtain the build agent on which the build was performed? Either directly from the web hook data (doesn't look like it...) or via the API somehow?

Questioner
D.R.
Viewed
72
D.R. 2019-07-03 23:03

The build succeeded webhook always returns a "queue" property which specifies the worker which handled the build. Which job of the build has run on which worker (at least the worker name) is visible if you access the timeline for the build.