teamcity rest API to get build problems by build id

In teamcity, the overview tab for a specific tab lists brief message under build problems if the build fails. Is there a way using rest API to retrieve the same build problems message by build id?

 

Thanks

0
1 comment

Hi Rong,

 

if you access the build results, there are two possibilities here:

-The status text. It's available under a specific build, field is called "statusText": <url>/app/rest/builds/<locator>/?fields=statusText

-For each specific build problem, it's message: <url>/app/rest/builds/<locator>/?fields=problemOccurrences(problemOccurrence(details))

 

Both can be combined such as:

<url>/app/rest/builds/<locator>/?fields=statusText,problemOccurrences(problemOccurrence(details))

0

Please sign in to leave a comment.