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
Please sign in to leave a comment.
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
I've given you my vote!
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
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
Le 29/04/2009 17:48, Daniel Lidström a ecrit :
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