We have installed and enabled Jenkins' Warnings Plugin and, we are using it's Maven parser to detect warnings in the task execution log.
This plugin has a set of advanced options that are supposed to allow including and excluding certain files and messages:
We currently have several projects with some warnings that we'd like to exclude from this analysis, but we haven't been able to figure out the proper regex for them, like the ones in this example image:
As regex, I've tried several approaches, but seems either Jenkins is expecting something special or maybe I'm just doing something wrong.
For this chunk, which is treated as a single warning:
[WARNING] Coverage measure for metric 'lines_to_cover' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
[WARNING] Coverage measure for metric 'uncovered_lines' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
[WARNING] Coverage measure for metric 'coverage_line_hits_data' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
[WARNING] Coverage measure for metric 'conditions_to_cover' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
[WARNING] Coverage measure for metric 'uncovered_conditions' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
[WARNING] Coverage measure for metric 'conditions_by_line' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
[WARNING] Coverage measure for metric 'covered_conditions_by_line' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
I've tried several regexes like 'lines_to_cover' or '.lines_to_cover.' which both seem to work in an online test tool, but neither are being caught by Jenkins.
Any ideas on the regex for excluding such warnings?