-
-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathconfig.jelly
More file actions
199 lines (189 loc) · 10.5 KB
/
config.jelly
File metadata and controls
199 lines (189 loc) · 10.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!--
/*
* Copyright (c) 2008-2009 Yahoo! Inc. All rights reserved.
* The copyrights to the contents of this file are licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
-->
<?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>
<f:repeatable var="plot" items="${instance.plots}" name="plots" add="${%Add Plot}" minimum="1">
<div align="left">
<f:repeatableDeleteButton value="${%Delete Plot}"/>
</div>
<input name="csvFileName" type="hidden" value="${plot.csvFileName}" />
<div>
<f:entry title="${%Plot group}" help="/plugin/plot/help-group.html">
<f:textbox name="group" value="${plot.group}" clazz="required" />
</f:entry>
<f:entry title="${%Plot title}" help="/plugin/plot/help-title.html">
<f:textbox name="title" value="${plot.title}" />
</f:entry>
<f:entry title="${%Plot description}" help="/plugin/plot/help-description.html">
<f:textbox name="description" value="${plot.description}" />
</f:entry>
<f:entry title="${%Number of builds to include}" help="/plugin/plot/help-numbuilds.html">
<input class="positive-number" type="text" name="numBuilds"
style="width:20em" value="${plot.numBuilds}" />
</f:entry>
<f:entry title="${%Plot y-axis label}" help="/plugin/plot/help-yaxis.html">
<f:textbox name="yaxis" value="${plot.yaxis}" />
</f:entry>
<f:entry title="${%Plot style}" help="/plugin/plot/help-style.html">
<select name="style">
<f:option value="area" selected="${plot.style=='area'}">${%Area}</f:option>
<f:option value="bar" selected="${plot.style=='bar'}">${%Bar}</f:option>
<f:option value="bar3d" selected="${plot.style=='bar3d'}">${%Bar 3D}</f:option>
<f:option value="line" selected="${plot.style=='line' || plot.style=='' || plot.style==null}">${%Line}</f:option>
<f:option value="lineSimple" selected="${plot.style=='lineSimple'}">${%Line simple}</f:option>
<f:option value="line3d" selected="${plot.style=='line3d'}">${%Line 3D}</f:option>
<f:option value="stackedArea" selected="${plot.style=='stackedArea'}">${%Stacked Area}</f:option>
<f:option value="stackedbar" selected="${plot.style=='stackedbar'}">${%Stacked Bar}</f:option>
<f:option value="stackedbar3d" selected="${plot.style=='stackedbar3d'}">${%Stacked Bar 3D}</f:option>
<f:option value="waterfall" selected="${plot.style=='waterfall'}">${%Waterfall}</f:option>
</select>
</f:entry>
<f:entry title="${%Build Descriptions as labels}" help="/plugin/plot/help-useDescr.html">
<f:checkbox name="useDescr" checked="${plot.useDescr}" />
</f:entry>
<f:entry title="${%Exclude zero as default Y-axis value}" help="/plugin/plot/help-exclZero.html">
<f:checkbox name="exclZero" checked="${plot.exclZero}" />
</f:entry>
<f:entry title="${%Use a logarithmic Y-axis}" help="/plugin/plot/help-logarithmic.html">
<f:checkbox name="logarithmic" checked="${plot.logarithmic}" />
</f:entry>
<f:entry title="${%Y-axis minimum}" help="/plugin/plot/help-yaxisMinimum.html">
<f:textbox name="yaxisMinimum" value="${plot.yaxisMinimum}" />
</f:entry>
<f:entry title="${%Y-axis maximum}" help="/plugin/plot/help-yaxisMaximum.html">
<f:textbox name="yaxisMaximum" value="${plot.yaxisMaximum}" />
</f:entry>
<f:entry title="${%Keep records for deleted builds}" help="/plugin/plot/help-keepRecords.html">
<f:checkbox name="keepRecords" checked="${plot.keepRecords}" />
</f:entry>
<f:entry title="${%Chart width}" help="/plugin/plot/help-chartWidth.html">
<f:textbox name="chartWidth" value="${plot.chartWidth}" />
</f:entry>
<f:entry title="${%Chart height}" help="/plugin/plot/help-chartHeight.html">
<f:textbox name="chartHeight" value="${plot.chartHeight}" />
</f:entry>
<f:entry title="${%Skip zero and NaN values}" help="/plugin/plot/help-skipZeroValues.html">
<f:checkbox name="skipZeroValues" checked="${plot.skipZeroValues}" />
</f:entry>
<f:entry title="${%Use decimal format on Y-axis}" help="/plugin/plot/help-useDecimalFormat.html">
<f:checkbox name="useDecimalFormat" checked="${plot.useDecimalFormat}" />
</f:entry>
<f:entry title="" description="${%A new data series definition}">
<f:repeatable var="series" items="${plot.series}" minimum="1">
<div>
<f:entry title="${%Data series file}" field="seriesFile" help="/plugin/plot/help-series.html">
<f:textbox name="file" value="${series.file}"/>
</f:entry>
<f:radioBlock name="fileType" value="properties" title="${%Load data from properties file}" help="/plugin/plot/help-properties.html" checked="${series.fileType=='properties' or series.fileType==null}">
<!-- Only property files have a legend label, csv pulls it from the column name, xml is TBD. -->
<f:entry title="${%Data series legend label}" help="/plugin/plot/help-legend.html">
<f:textbox name="label" value="${series.label}" />
</f:entry>
</f:radioBlock>
<f:radioBlock name="fileType" value="csv" title="${%Load data from csv file}" help="/plugin/plot/help-csv.html" checked="${series.fileType=='csv'}">
<f:nested>
<div>
<table>
<tr>
<td></td>
<th align="left">${%Include all columns}</th>
<th align="left">${%Include columns by name}</th>
<th align="left">${%Exclude columns by name}</th>
<th align="left">${%Include columns by index}</th>
<th align="left">${%Exclude columns by index}</th>
</tr>
<tr>
<td></td>
<td>
<f:radio name="inclusionFlag" value="OFF" checked="${series.inclusionFlag=='OFF' or series.inclusionFlag==null}" />
</td>
<td>
<f:radio name="inclusionFlag" value="INCLUDE_BY_STRING" checked="${series.inclusionFlag=='INCLUDE_BY_STRING'}" />
</td>
<td>
<f:radio name="inclusionFlag" value="EXCLUDE_BY_STRING" checked="${series.inclusionFlag=='EXCLUDE_BY_STRING'}" />
</td>
<td>
<f:radio name="inclusionFlag" value="INCLUDE_BY_COLUMN" checked="${series.inclusionFlag=='INCLUDE_BY_COLUMN'}" />
</td>
<td>
<f:radio name="inclusionFlag" value="EXCLUDE_BY_COLUMN" checked="${series.inclusionFlag=='EXCLUDE_BY_COLUMN'}" />
</td>
</tr>
</table>
</div>
<br/> <!-- insert line break to adapt to 2.479.x layout change -->
<f:entry title="${%CSV Exclusion values}" help="/plugin/plot/help-csv-exclusions.html">
<f:textbox name="exclusionValues" value="${series.exclusionValues}" />
</f:entry>
<f:entry title="${%URL}" help="/plugin/plot/help-csv-url.html">
<f:textbox name="url" value="${series.url}" />
</f:entry>
<f:entry title="${%Display original csv above plot}" help="/plugin/plot/help-csv-table.html">
<f:checkbox name="displayTableFlag" checked="${series.displayTableFlag}" />
</f:entry>
</f:nested>
</f:radioBlock>
<f:radioBlock name="fileType" value="xml" title="${%Load data from xml file using xpath}" help="/plugin/plot/help-xml.html" checked="${series.fileType=='xml'}">
<f:nested title="XML nested">
<div>
<table>
<tr>
<td align="center">${%XPath Result type:}</td>
<th align="center">${%Nodeset}</th>
<th align="center">${%Node}</th>
<th align="center">${%String}</th>
<th align="center">${%Boolean}</th>
<th align="center">${%Number}</th>
</tr>
<tr>
<td></td>
<td>
<f:radio name="nodeType" value="NODESET" checked="${series.nodeType=='NODESET' or series.nodeType==null}" />
</td>
<td>
<f:radio name="nodeType" value="NODE" checked="${series.nodeType=='NODE'}" />
</td>
<td>
<f:radio name="nodeType" value="STRING" checked="${series.nodeType=='STRING'}" />
</td>
<td>
<f:radio name="nodeType" value="BOOLEAN" checked="${series.nodeType=='BOOLEAN'}" />
</td>
<td>
<f:radio name="nodeType" value="NUMBER" checked="${series.nodeType=='NUMBER'}" />
</td>
</tr>
</table>
</div>
<f:entry title="${%XPath Expression}" help="/plugin/plot/help-xml-xpath.html">
<f:textbox name="xpath" value="${series.xpath}" />
</f:entry>
<f:entry title="${%URL}" help="/plugin/plot/help-xml-url.html">
<f:textbox name="url" value="${series.url}" />
</f:entry>
</f:nested>
</f:radioBlock>
<f:entry>
<div align="right">
<f:repeatableDeleteButton value="${%Delete Data Series}"/>
</div>
</f:entry>
</div>
</f:repeatable>
</f:entry>
<f:entry>
<f:block>
<hr/>
</f:block>
</f:entry>
</div>
</f:repeatable>
</f:entry>
</j:jelly>