add two new options to Log Parser Plugin

Support both global and per-project rules, and the showGraphs option,
both of which became possible in the 2.0 release:

https://github.com/jenkinsci/log-parser-plugin/compare/log-parser-1.0.8...log-parser-2.0
ecde717b9b
6e75ecc8f9

Change-Id: I38b0058467d16ca7e3c4d3dc4edb2c9294551f15
This commit is contained in:
Adam Spiers
2017-03-14 13:51:08 +00:00
parent a5eb235881
commit d3307d6938
6 changed files with 43 additions and 8 deletions

View File

@@ -4,7 +4,9 @@
<hudson.plugins.logparser.LogParserPublisher plugin="log-parser">
<unstableOnWarning>true</unstableOnWarning>
<failBuildOnError>true</failBuildOnError>
<parsingRulesPath>/path/to/parserules</parsingRulesPath>
<showGraphs>false</showGraphs>
<useProjectRule>false</useProjectRule>
<parsingRulesPath>/path/to/global-rules</parsingRulesPath>
</hudson.plugins.logparser.LogParserPublisher>
</publishers>
</project>

View File

@@ -0,0 +1,7 @@
publishers:
- logparser:
use-project-rules: false
parse-rules: "/path/to/global-rules"
unstable-on-warning: true
fail-on-error: true
show-graphs: false

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<hudson.plugins.logparser.LogParserPublisher plugin="log-parser">
<unstableOnWarning>false</unstableOnWarning>
<failBuildOnError>false</failBuildOnError>
<showGraphs>true</showGraphs>
<useProjectRule>true</useProjectRule>
<projectRulePath>project-log-parser-rules.txt</projectRulePath>
</hudson.plugins.logparser.LogParserPublisher>
</publishers>
</project>

View File

@@ -0,0 +1,3 @@
publishers:
- logparser:
parse-rules: "project-log-parser-rules.txt"

View File

@@ -1,5 +0,0 @@
publishers:
- logparser:
parse-rules: "/path/to/parserules"
unstable-on-warning: true
fail-on-error: true