9

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?

1 Answer 1

11

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

Sign up to request clarification or add additional context in comments.

8 Comments

thanks, could you be so kind as to link the reference? I did search the TC docs but didn't find anything.
I think it's documented in the "REST API" docs. Alas, TeamCity makes it hard to find things.
Can't see it in the documentation today, but this definitely still works. Thanks! :)
In hindsight, I believe the URL format isn't documented. I believe I found it by looking at the REST API output for builds, where TeamCity hands over quite a few URLs.
There is a ticket about the documentation problem here: youtrack.jetbrains.com/issue/TW-37177
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.