forked from hpsa/hpe-application-automation-tools-plugin
/
config.jelly
85 lines (73 loc) · 4.09 KB
/
config.jelly
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
<?jelly escape-by-default='true'?>
<!--
~ Certain versions of software and/or documents ("Material") accessible here may contain branding from
~ Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017,
~ the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP
~ and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE
~ marks are the property of their respective owners.
~ __________________________________________________________________
~ MIT License
~
~ (c) Copyright 2012-2021 Micro Focus or one of its affiliates.
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
~ documentation files (the "Software"), to deal in the Software without restriction, including without limitation
~ the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
~ and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in all copies or
~ substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
~ THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
~ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
~ SOFTWARE.
~
~ ___________________________________________________________________
-->
<j:jelly xmlns:j="jelly:core"
xmlns:f="/lib/form"
xmlns:hp="/lib/hp-application-automation-tools">
<!--
This Jelly script is used to produce the global configuration option.
Jenkins uses a set of tag libraries to provide uniformity in forms.
To determine where this tag is defined, first check the namespace URI,
and then look under $JENKINS/views/. For example, <f:section> is defined
in $JENKINS/views/lib/form/section.jelly.
It's also often useful to just check other similar scripts to see what
tags they use. Views are always organized according to its owner class,
so it should be straightforward to find them.
-->
<f:section title="Service Virtualization">
<f:entry title="Servers" description="List of Service Virtualization servers">
<f:repeatable add="Add SV server" var="srv" items="${descriptor.servers}">
<hp:blockWrapperTableWidth>
<f:entry title="${%Name}" field="name">
<f:textbox value="${srv.name}"/>
</f:entry>
<f:entry title="${%URL}" field="url">
<f:textbox value="${srv.url}"/>
</f:entry>
<f:entry title="${%Ignore SSL errors}" field="trustEveryone">
<f:checkbox value="${srv.trustEveryone}"/>
</f:entry>
<f:entry title="${%User name}" field="username">
<f:textbox value="${srv.username}"/>
</f:entry>
<f:entry title="${%Password}" field="password">
<f:password value="${srv.password}"/>
</f:entry>
<f:validateButton
title="${%Test Connection}" progress="${%Testing...}"
method="testConnection" with="url,trustEveryone,username,password"/>
<f:entry title="">
<div align="right">
<f:repeatableDeleteButton value="Delete SV server"/>
</div>
</f:entry>
</hp:blockWrapperTableWidth>
</f:repeatable>
</f:entry>
</f:section>
</j:jelly>