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.0ecde717b9b6e75ecc8f9Change-Id: I38b0058467d16ca7e3c4d3dc4edb2c9294551f15
This commit is contained in:
@@ -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>
|
||||
7
tests/publishers/fixtures/logparser-full.yaml
Normal file
7
tests/publishers/fixtures/logparser-full.yaml
Normal 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
|
||||
12
tests/publishers/fixtures/logparser-minimal.xml
Normal file
12
tests/publishers/fixtures/logparser-minimal.xml
Normal 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>
|
||||
3
tests/publishers/fixtures/logparser-minimal.yaml
Normal file
3
tests/publishers/fixtures/logparser-minimal.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
publishers:
|
||||
- logparser:
|
||||
parse-rules: "project-log-parser-rules.txt"
|
||||
@@ -1,5 +0,0 @@
|
||||
publishers:
|
||||
- logparser:
|
||||
parse-rules: "/path/to/parserules"
|
||||
unstable-on-warning: true
|
||||
fail-on-error: true
|
||||
Reference in New Issue
Block a user