Capturing build output from gcc to display within TeamCity

Hello,

I would like to be able to display warnings generated by gcc within TeamCity. Currently, my build output looks like this:


gcc.compile.c++ GeoROG/bin/gcc-4.3/debug/DataFilterInterface.o
gcc.compile.c++ GeoROG/bin/gcc-4.3/debug/MikrofynControllerBase.o
In file included from GFL/GFL/DataIO/DataIOManager.h:13,
                 from GeoROG/Formatter/UCBMessage.h:5,
                 from GeoROG/Formatter/ExternalKeyboardMessage.h:4,
                 from /home/daniel/projects/branches/Didymos/GeoROG/Control/MikrofynControllerBase.h:12,
                 from /home/daniel/projects/branches/Didymos/GeoROG/Control/MikrofynControllerBase.cpp:11:
GFL/GFL/GHAL/FileIO.h:28: warning: ‘typedef’ was ignored in this declaration
GFL/GFL/GHAL/FileIO.h:66: warning: ‘typedef’ was ignored in this declaration



Ideally, I would like to see the last two rows somewhere within TeamCity. Has anybody created the necessary regular expressions for gcc warnings? Any help would be greatly appreciated!

Regards,

Daniel Lidström


4 comments
Comment actions Permalink

Hello Daniel,

  You may want to vote for http://jetbrains.net/tracker/issue2/TW-370 issue - custom filtering for build log, and
http://jetbrains.net/tracker/issue2/TW-3917.

  By the moment, your task can be solved only by writing a TeamCity plugin. This plugin should provide an extension implementing jetbrains.buildServer.messages.serviceMessages.ServiceMessageTranslator interface.

  Regards,
  KIR

0
Comment actions Permalink

I've given you my vote!

0
Comment actions Permalink

Is this output in the correct format for TeamCity?


##teamcity[message text='GeoROG/License/License.h' errorDetails='‘typedef’ was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/License/License.h' errorDetails='‘typedef’ was ignored in this declaration' status='WARNING']



I am not getting the error details within TeamCity, only the text is shown:


[17:22:06]: GeoROG/License/License.h
[17:22:06]: GeoROG/License/License.h

I would expect "‘typedef’ was ignored in this declaration" to be printed somewhere.


So there seems to be some kind of problem. What am I missing?


Regards,

Daniel Lidström
0
Comment actions Permalink

Le 29/04/2009 17:48, Daniel Lidström a ecrit :

Is this output in the correct format for TeamCity?


##teamcity[message text='GeoROG/License/License.h' errorDetails='‘typedef’ was ignored in this declaration' status='WARNING']
##teamcity[message text='GeoROG/License/License.h' errorDetails='‘typedef’ was ignored in this declaration' status='WARNING']


I am not getting the error details within TeamCity, only the text is shown:

: GeoROG/License/License.h
: GeoROG/License/License.h
: GeoROG/GCore/GCore.h

So there seems to be some kind of problem. What am I missing?


It seems to be normal, the doc says :

The errorDetails attribute is used only if status is ERROR, in other
cases it is ignored.

I'm working on the same problem, I try with some "sed" command and
regexp to parse output and write it in teamcity format, it's starting to
give results.

Gérald

0

Please sign in to leave a comment.