Adding message to TeamCity's build status while keeping previous values

I'm trying to add a message to TeamCity's build status from a script, while also keeping previous addings from other scripts.

I know about

##teamcity[buildStatus...
, but with that I can only take what TeamCity itself computed via

{build.status.text}
and append/prepend text. I cannot append/prepend to whatever was there before.

Example:
Something
> magic append >
Something, Foo: 10
> magic append >
Something, Foo: 10, Bar: 11


So far I can only think of generating
teamcity-info.xml
which is little bit overkill for scripts given you have to parse it (if already exists), modify and then store again. Maybe there's easier way.
2 comments
Comment actions Permalink

Hi Jiri,

There is no option to create cumulative build status now in TeamCity. We have a related issue in our tracker - https://youtrack.jetbrains.com/issue/TW-36338, please watch/vote for it.

0
Comment actions Permalink

OK, so the only possible solution is to switch to full blown teamcity-info.xml.

0

Please sign in to leave a comment.