Parsing the build log

I want to parse the build log in a build step and save it as a parameter. Can someone please help me how to do that ? 

1 comment

Hi,

 

The build log is normally not available during the build, and it's not stored "as is", but in an internal binary format. There is an HTTP endpoint to download it in a readable format (<server_url>/downloadBuildLog.html?buildId=<build_id>), although keep in mind that on a running build this is not fully available. 

 

If you need to export values during a build as parameters, you can use this method: https://confluence.jetbrains.com/display/TCD18/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-AddingorChangingaBuildParameter

0

Please sign in to leave a comment.