How to dump the build log .msg5 file

I'd like to view the build log which is in .msg5 format on my local machine instead of the web ui. Because I need to share the log file to my colleague through local area network. Could you help me please? Or is there any way to dump the .msg5 file into text format?

 

BTW, I don't think copy it from web ui is a good idea

0
1 comment

OK. It's me again.
I've found a way to solve my problem.

I just used the url in this article https://www.jetbrains.com/help/teamcity/build-log.html#Viewing+Build+Log to download the build log file. But  need to replace 'teamcity' with 'localhost' and the build Id is the internal build id cuz I'm using localhost.

So when the build is finished, how to get the internal build id?

I found a way to get the internal build id. The build log dir is `<TeamCity Data Directory>/system/artifacts/<project ID>/<build configuration name>/<internal_build_id>/.teamcity/logs`. So I can use a batch program to detect the latest dir. And the dir name is the latest internal_build_id. But I can only get the latest build id in this way.

If anybody has better idea can give a comment below.

0

Please sign in to leave a comment.