How to mark the build as 'failed' based on certain text in the console log file

Hi ..
I would like to mark the build as failed, if there are text found. I have configured a Teamcity job to run make on agent which HPUX Machine. I have to run as shell (using command line runner type).

Based on certain text in  make console log, I would like to mark the build as failed. Please let me know, if there is any plugin which can do it ?

Right now, I am running multiple Makefiles as part of shell script and if last Makefiles compiles, it marks the build as 'Success' even though there were couple of Make failures for the previous makefiles in the script.


1 comment
Comment actions Permalink

Hi Rajan,

To archieve this you can use build-in Build Failure Conditions, see Fail build on specific text in build log section.


Please sign in to leave a comment.