Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the Teamcity REST API to get a build Log

Tags:

rest

teamcity

Say I have a specific build, such as :

http://xxxxxxx.xx.xx.xxx.net:81/httpAuth/app/rest/builds/id:161010

How would I get the build log of that build?

like image 732
Tarks Avatar asked Jan 30 '12 14:01

Tarks


People also ask

How do I check my TeamCity build history?

To view the history of builds in the current configuration, click previous and next links in the upper right corner of Build Results. Click All history link to open the History tab.

How do you check TeamCity logs?

In the web UI, go to Administration | Diagnostics page. On the Troubleshooting tab, choose an active logging preset. To view logs, go to the Server Logs tab. If it is not possible to enable debug logging mode from the TeamCity web UI, refer to this section to learn how to adjust logging options manually.

What is a build log?

A build log is an enhanced console output of a build. It is represented by a structured list of the events which took place during the build. Generally, it includes entries on TeamCity-performed actions and the output of the processes launched during the build.

What is build locator in TeamCity?

BuildLocator Last modified: 26 July 2022. Represents a locator string for filtering Build entities. Examples: id:1 — find build with ID 1 .


1 Answers

Just download http://your.teamcity.server/httpAuth/downloadBuildLog.html?buildId=nnnn. Nice and easy.

This has now been added to the docs - https://confluence.jetbrains.com/display/TCD10/Build+Log

like image 55
Ross Patterson Avatar answered Nov 15 '22 11:11

Ross Patterson