Geo
Geo

Reputation: 96767

How can I customize the output of 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?

Upvotes: 9

Views: 14425

Answers (1)

Anders Lindahl
Anders Lindahl

Reputation: 42870

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

Upvotes: 12

Related Questions