Search code examples
restteamcity

Using the Teamcity REST API to get a build Log


Say I have a specific build, such as:

https://example.com/httpAuth/app/rest/builds/id:161010

How would I get the build log of that build?


Solution

  • 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