Is it possible to get the source log assembly from the TeamCity assembly?

Is it possible to get the source assembly log from the TeamCity assembly? I wrote a special test runner that starts as a step in building the command line and returns the test results by printing the lines ##teamcity... on stdout. The build log from TeamCity seems to remove them when it recognizes them. I would like the initial output to help debug my test runner.

Update: Apparently, this is simply not possible. neverov (I assume that Dimitry Neverov from JetBrains?) explained this and gave a workaround, so I accepted his answer.

+6
source share
4 answers

You can download it by clicking "Download full assembly log" on the build log page.

+2
source

You can see the source output of the assembly agent by looking at the /logs agent directory. This shows unsent data that is hidden at the assembly output shown in the TeamCity console.

For example c:\TeamCity-Agent\logs\teamcity-build.log .

+9
source

I could not say that this is what you were talking about when referring to the ##teamcity... in your question, but this is what I am doing now for the steps of building the command line (currently I do everything):

 ##teamcity[testStarted name='dummyTestName' captureStandardOutput='true'] echo "Do your command-line build steps here." ##teamcity[testFinished name='dummyTestName'] 

This is a kind of hacker workaround, but it will cause stdout / stderr to appear on the build log page in the TeamCity web interface.

0
source

In the assembly log there is an option "verbose / verbose" - it shows all service messages. I saw this with TC9.

0
source

Source: https://habr.com/ru/post/919809/


All Articles