How to structure output for build log so it is foldable/expandable

BuildLogTeamCity.png
As you can see in the screenshot above, some lines of the build log are able to be collapsed or expanded. What do I need to do to my script's output to enable this folding?

1 comment
Comment actions Permalink

Following off of the documentation at http://confluence.jetbrains.net/display/TCD7/Build+Script+Interaction+with+TeamCity, I found that the following worked (this is from a batch script):

echo ##teamcity[blockOpened name='Parsing Parameters'] echo message inside Parsing Parameters echo ##teamcity[blockClosed name='Parsing Parameters']



Alternatively, you can do

echo ##teamcity[progressStart 'Parsing Parameters']
echo message inside Parsing Parameters
echo ##teamcity[progressFinish 'Parsing Parameters']


The block method works better, in my experience, because it handles linebreaks in the output and gives a running tally of the time spent on a task.

0

Please sign in to leave a comment.