Problems with ##teamcity[message...]

Hello,

I have successfully transformed gcc output into the following:


##teamcity[message text='GeoROG/GCore/GCore.h:54' errorDetails='|'typedef|' was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/GCore/GCore.h:63' errorDetails='|'typedef|' was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/GCore/GCore.h:65' errorDetails='|'typedef|' was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/GCore/GCore.h:66' errorDetails='|'typedef|' was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/GCore/GCore.h:67' errorDetails='|'typedef|' was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/GCore/GCore.h:69' errorDetails='|'typedef|' was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/GCore/GCore.h:72' errorDetails='|'typedef|' was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/GCore/GCore.h:77' errorDetails='|'typedef|' was ignored in this declaration' status='WARNING']



 
From what I understand, this should be the correct format. However, when I look at the build log within TeamCity, all I see is the text part. That is, the filename and line number. It is shown in yellow (per the WARNING I would guess). But I don't see the errorDetails anywhere. Am I missing something? I am using TeamCity 4.5.

Thanks in advance!

Regards,

Daniel Lidström


1 comment
Comment actions Permalink

The errorDetails attribute is used only if status is ERROR, in other cases it is ignored. In your case however this is a warning, not error, so I guess you should move text from the errorDetails to the text attribute.

0

Please sign in to leave a comment.