If your cake
command outputs anything other than 0
, it would be considered FAILURE
by Jenkins, and the job will be marked accordingly.
To answer your question for searching console log for keywords, there is Text-finder plugin that allows to search console log and/or any other file for a RegEx, and mark the build as UNSTABLE
or FAILED
if found.