Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I customize the output of Jenkins?

Tags:

jenkins

My Jenkins builds our code, via a batch script build step. The output/error streams are captured and displayed in the build page. Can I do something to highlight the errors? For example, I would like to colour in red all the lines that contain the string error SOME_CODE, and in yellow all the warnings. Can this be done?

like image 523
Geo Avatar asked Feb 03 '23 14:02

Geo


1 Answers

The Log Parser Plugin can do this:

The log-parser plugin allows to parse the flat console log generated by the Hudson build. It does this by :

  • highlighting lines of interest in the log (errors, warnings, information)
  • dividing the log into sections
  • displaying a summary of number of errors , warnings and information lines within the log and its sections.
  • linking the summary of errors and warnings into the context of the full log, making it easy to find a line of interest in the log
  • showing a summary of errors and warnings on the build page
like image 109
Anders Lindahl Avatar answered Feb 07 '23 10:02

Anders Lindahl