This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-20147: Add include and exclude files patterns
Add include patterns option to include files in the report based on their absolute paths. Add exclude patterns option to exclude files from the report based on their absolute paths. Issue: JENKINS-20147 Change-Id: I2220dc9b613bd95d4fbd1b0bd102f578c359e862
- Loading branch information
meg
authored and
Geraldo Mecja
committed
Nov 11, 2013
1 parent
562d2ce
commit dc16e50
Showing
6 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- | ||
Section header | ||
--> | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" | ||
xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> | ||
|
||
<f:entry title="${%Bugs to include}" field="includePattern" description="${%description.includePattern}"> | ||
<f:textbox /> | ||
</f:entry> | ||
<f:entry title="${%Bugs to ignore}" field="excludePattern" description="${%description.excludePattern}"> | ||
<f:textbox /> | ||
</f:entry> | ||
|
||
</j:jelly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
description.includePattern=Comma separated list of \ | ||
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/regex/Pattern.html">regular expressions</a> \ | ||
that specifies the files to include in the report (based on their absolute filename). \ | ||
If this field is empty then all files are included. | ||
description.excludePattern=Comma separated list of \ | ||
<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/regex/Pattern.html">regular expressions</a> \ | ||
that specifies the files to exclude from the report (based on their absolute filename). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 6 additions & 16 deletions
22
plugin/src/main/resources/hudson/plugins/findbugs/FindBugsReporter/config.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" | ||
xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:u="/util" xmlns:fb="/findbugs"> | ||
<f:entry title="${%FindBugs results}" field="pattern" | ||
description="${%description.pattern('http://ant.apache.org/manual/Types/fileset.html')}"> | ||
<f:textbox /> | ||
</f:entry> | ||
<fb:rank /> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" | ||
xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:u="/util" xmlns:fb="/findbugs"> | ||
<fb:rank/> | ||
<f:advanced> | ||
<f:entry title="${%Bugs to include}" field="includePattern" description="${%description.includePattern}"> | ||
<f:textbox /> | ||
</f:entry> | ||
<f:entry title="${%Bugs to ignore}" field="excludePattern" description="${%description.excludePattern}"> | ||
<f:textbox /> | ||
</f:entry> | ||
|
||
<u:advanced id="findbugs" /> | ||
<fb:filter/> | ||
<u:advancedMaven id="findbugs"/> | ||
</f:advanced> | ||
</j:jelly> | ||
</j:jelly> |