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-51336] Integrated PR#122. Hide parser details in system config.
See #122
- Loading branch information
Showing
5 changed files
with
76 additions
and
16 deletions.
There are no files selected for viewing
29 changes: 13 additions & 16 deletions
29
src/main/resources/io/jenkins/plugins/analysis/warnings/groovy/GroovyParser/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,24 +1,21 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" | ||
xmlns:f="/lib/form"> | ||
<f:entry field="id" title="${%ID}" description="${%id.description}"> | ||
<f:textbox /> | ||
</f:entry> | ||
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:p="/parser"> | ||
<f:entry field="name" title="${%Name}" description="${%name.description}"> | ||
<f:textbox /> | ||
</f:entry> | ||
<f:entry field="regexp" title="${%Regular Expression}" description="${%regexp.description}"> | ||
<f:textbox /> | ||
</f:entry> | ||
<f:entry field="script" title="${%Mapping Script}" description="${%script.description}"> | ||
<f:textarea /> | ||
</f:entry> | ||
<f:entry field="example" title="${%Example Log Message}" description="${%example.description}"> | ||
<f:textarea /> | ||
<f:textbox/> | ||
</f:entry> | ||
<j:choose> | ||
<j:when test="${instance.valid}"> | ||
<f:advanced title="${%Details}" align="left"> | ||
<p:advanced/> | ||
</f:advanced> | ||
</j:when> | ||
<j:otherwise> | ||
<p:advanced/> | ||
</j:otherwise> | ||
</j:choose> | ||
<f:entry title=""> | ||
<div align="right"> | ||
<f:repeatableDeleteButton /> | ||
<f:repeatableDeleteButton/> | ||
</div> | ||
</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,21 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:st="jelly:stapler"> | ||
|
||
<st:documentation> | ||
Provides the advanced settings of a Groovy parser that are hidden by default. | ||
</st:documentation> | ||
|
||
<f:entry field="id" title="${%ID}" description="${%id.description}"> | ||
<f:textbox/> | ||
</f:entry> | ||
<f:entry field="regexp" title="${%Regular Expression}" description="${%regexp.description}"> | ||
<f:textbox/> | ||
</f:entry> | ||
<f:entry field="script" title="${%Mapping Script}" description="${%script.description}"> | ||
<f:textarea/> | ||
</f:entry> | ||
<f:entry field="example" title="${%Example Log Message}" description="${%example.description}"> | ||
<f:textarea/> | ||
</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,10 @@ | ||
id.description=ID of this parser, it must be unique and must not already used by a built-in parser. \ | ||
This ID is used as link to the results, so choose a short and meaningful name. | ||
regexp.description=A regular expression that is matched against the log file (must contain \ | ||
newline characters to enable multi-line parsing). \ | ||
If a match is found it is passed to the following Groovy script. See help for an example. | ||
script.description=<a href="http://groovy-lang.org/">Groovy</a> script that will be called at runtime to \ | ||
convert the match of the specified regular expression into a new warning. See help for an example. | ||
example.description=Example log message that will be automatically parsed using the values provided \ | ||
in the fields above when you leave the field. Put here a typical warning message from your log file and \ | ||
adjust the regular expression and script until a warning is successfully found. |
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,17 @@ | ||
id.description=ID des Parsers. Diese muss global eindeutig sein und darf noch nicht von einem der eingebauten \ | ||
Parser verwendet werden. Da diese ID als Link zu den Ergebnissen genutzt wird, sollte diese möglichst kurz \ | ||
aber dennoch aussagekräftig sein. | ||
regexp.description=Ein regulärer Ausdruck, der auf die Konsolenausgabe angewendet wird. Um zeilenübergreifende \ | ||
Warnungen zu finden, muss mindestens ein New Line (''\\n'') Zeichen verwendet werden. Trifft der Ausdruck zu, \ | ||
dann wird das Ergebnis an das unten aufgeführte Groovy Skript weitergegeben. \ | ||
Ein Beispiel dazu findet sich in der Hilfe. | ||
script.description=Ein <a href="http://groovy-lang.org/">Groovy</a> Skript, das zur Laufzeit aufgerufen wird, um für \ | ||
jeden gefundenen Treffer eine neue Warnung zu erzeugen. Ein Beispiel dazu findet sich in der Hilfe. | ||
example.description=Beispielmeldung, die automatisch mit den oben angegebenen Werten überprüft wird, sobald man das \ | ||
Eingabefeld verlässt. Am besten wird hier eine typische Warnung aus der Konsolenausgabe hineinkopiert. Dann kann der \ | ||
reguläre Ausdruck und das Skript Schritt für Schritt so angepasst werden, bis die Warnung erkannt wird. | ||
Name=Name | ||
Regular\ Expression=Regulärer Ausdruck | ||
Mapping\ Script=Auswertungs-Skript | ||
Example\ Log\ Message=Beispielmeldung | ||
Details=Details |
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,15 @@ | ||
Name=\u540d\u524d | ||
Regular\ Expression=\u6b63\u898f\u8868\u73fe | ||
Mapping\ Script=\u30de\u30c3\u30d4\u30f3\u30b0 \u30b9\u30af\u30ea\u30d7\u30c8 | ||
Example\ Log\ Message=\u30ed\u30b0\u30e1\u30c3\u30bb\u30fc\u30b8 | ||
Details=\u8a73\u7d30 | ||
|
||
regexp.description=\ | ||
\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u8a55\u4fa1\u3059\u308b\u306e\u306b\u4f7f\u7528\u3059\u308b\u6b63\u898f\u8868\u73fe\u3067\u3059(\u8907\u6570\u884c\u306e\u30d1\u30fc\u30b9\u3092\u884c\u3046\u305f\u3081\u3001\u6539\u884c\u30b3\u30fc\u30c9\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059)\u3002\ | ||
\u6b63\u898f\u8868\u73fe\u306b\u30de\u30c3\u30c1\u3057\u305f\u5834\u5408\u3001\u6b21\u306eGroovy\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u6e21\u3055\u308c\u307e\u3059\u3002\u4f8b\u306f\u30d8\u30eb\u30d7\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 | ||
script.description=\ | ||
\u52d5\u4f5c\u6642\u306b<a href="http://groovy-lang.org/">Groovy</a>\u3092\u8d77\u52d5\u3057\u3001\u6b63\u898f\u8868\u73fe\u306b\u30de\u30c3\u30c1\u3057\u305f\u30ed\u30b0\u3092\u65b0\u3057\u3044\u8b66\u544a\u306b\u5909\u63db\u3057\u307e\u3059\u3002\ | ||
\u4f8b\u306f\u30d8\u30eb\u30d7\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 | ||
example.description=\ | ||
\u9805\u76ee\u6b04\u304b\u3089\u30d5\u30a9\u30fc\u30ab\u30b9\u3092\u5916\u3057\u305f\u3068\u304d\u306b\u3001\u30ed\u30b0\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5024\u304c\u81ea\u52d5\u7684\u306b\u30d1\u30fc\u30b9\u3055\u308c\u307e\u3059\u3002\ | ||
\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u5178\u578b\u7684\u306a\u8b66\u544a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5165\u529b\u3057\u3001\u6b63\u3057\u304f\u5909\u63db\u3055\u308c\u308b\u3088\u3046\u306b\u3001\u6b63\u898f\u8868\u73fe\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3000 |