-
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathconfig.jelly
More file actions
87 lines (82 loc) · 4.32 KB
/
config.jelly
File metadata and controls
87 lines (82 loc) · 4.32 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
<!--
Present slave opts overrides.
`<st:include page="config.jelly" it="${instance}" from="${defaultOpts}"/>`
(Note the `from` attribute is needed as `instance` can be null and jelly will fail to identify the owner class when configured for the first time)
Params:
instance - SlaveOptions with current configurations. Can be null if this is configured for the first time.
defaultOpts - default options, never null.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:rh="/jenkins/plugins/openstack/form">
<j:set var="descriptor" value="${defaultOpts.descriptor}"/>
<j:set var="d" value="${descriptor}"/>
<f:nested>
<div name="slaveOptions" descriptorid="${descriptor.id}">
<rh:blockWrapper>
<f:section title="Cloud Server Options">
<f:slave-mode name="mode" node="${instance}"/>
<f:dropdownDescriptorSelector field="bootSource" title="Boot Source"/>
<f:entry title="Hardware" field="hardwareId">
<f:select checkMethod="post"/>
</f:entry>
<f:entry title="Network(s)" field="networkId">
<f:textbox checkMethod="post"/>
</f:entry>
<f:entry title="User Data" field="userDataId">
<f:select checkMethod="post"/>
</f:entry>
<f:entry title="Max. No. of Instances" field="instanceCap">
<f:number checkMethod="post"/>
</f:entry>
<f:entry title="Min. No. of Instances" field="instancesMin">
<f:number checkMethod="post"/>
</f:entry>
<f:entry title="Floating IP pool" field="floatingIpPool">
<f:select checkMethod="post"/>
</f:entry>
<f:entry title="Security Groups" field="securityGroups">
<f:textbox checkMethod="post"/>
</f:entry>
<f:entry title="Availability Zone" field="availabilityZone">
<f:combobox checkMethod="post"/>
</f:entry>
<f:entry title="Startup Timeout" field="startTimeout">
<f:textbox checkMethod="post"/>
</f:entry>
<f:entry title="Key Pair Name" field="keyPairName">
<f:select checkMethod="post"/>
</f:entry>
<f:entry title="Config drive" field="configDrive">
<f:select checkMethod="post"/>
</f:entry>
</f:section>
<f:section title="Slave Options">
<f:entry title="Number of Executors" field="numExecutors">
<f:number checkMethod="post"/>
</f:entry>
<f:entry title="Custom JVM Options" field="jvmOptions">
<f:textbox checkMethod="post"/>
</f:entry>
<f:entry title="Remote FS Root" field="fsRoot">
<f:textbox checkMethod="post"/>
</f:entry>
<f:entry title="Retention Time" field="retentionTime">
<f:number checkMethod="post"/>
</f:entry>
<f:dropdownDescriptorSelector field="launcherFactory" title="Connection type"/>
<f:block>
<rh:blockWrapper>
<f:optionalBlock name="hasNodeProperties" checked="${instance.nodeProperties != null}" title="Node Properties" inline="true">
<f:entry>
<f:repeatableHeteroProperty field="nodeProperties" oneEach="true" hasHeader="true"
addCaption="Add Node Property" deleteCaption="Delete Node Property"/>
</f:entry>
</f:optionalBlock>
</rh:blockWrapper>
</f:block>
</f:section>
<f:class-entry descriptor="${descriptor}"/>
</rh:blockWrapper>
</div>
</f:nested>
</j:jelly>