-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
config.jelly
93 lines (72 loc) · 2.95 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
83
84
85
86
87
88
89
90
91
92
93
<!--
Config page
-->
<?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 field="name" title="${%Name}">
<f:textbox clazz="required"/>
</f:entry>
<f:entry field="image" title="${%Docker image}">
<f:textbox clazz="required"/>
</f:entry>
<f:entry field="alwaysPullImage" title="${%Always pull image}">
<f:checkbox/>
</f:entry>
<f:entry field="workingDir" title="${%Working directory}">
<f:textbox default="${descriptor.workingDir}"/>
</f:entry>
<f:entry field="command" title="${%Command to run}">
<f:textbox default="${descriptor.defaultCommand}"/>
</f:entry>
<f:entry field="args" title="${%Arguments to pass to the command}">
<f:textbox default="${descriptor.defaultArgs}"/>
</f:entry>
<f:entry field="ttyEnabled" title="${%Allocate pseudo-TTY}">
<f:checkbox default="true"/>
</f:entry>
<f:entry title="${%Environment Variables}" field="envVars" description="${%List of environment variables to set in agent pod}">
<f:repeatableHeteroProperty field="envVars" hasHeader="true" addCaption="${%Add Environment Variable}"
deleteCaption="${%Delete Environment Variable}" />
</f:entry>
<f:advanced>
<f:entry field="privileged" title="${%Run in privileged mode}">
<f:checkbox/>
</f:entry>
<f:entry field="runAsUser" title="${%Run As User ID}">
<f:textbox/>
</f:entry>
<f:entry field="runAsGroup" title="${%Run As Group ID}">
<f:textbox/>
</f:entry>
<f:entry field="resourceRequestCpu" title="${%Request CPU}">
<f:textbox/>
</f:entry>
<f:entry field="resourceRequestMemory" title="${%Request Memory}">
<f:textbox/>
</f:entry>
<f:entry field="resourceRequestEphemeralStorage" title="${%Request Ephemeral Storage}">
<f:textbox/>
</f:entry>
<f:entry field="resourceLimitCpu" title="${%Limit CPU}">
<f:textbox/>
</f:entry>
<f:entry field="resourceLimitMemory" title="${%Limit Memory}">
<f:textbox/>
</f:entry>
<f:entry field="resourceLimitEphemeralStorage" title="${%Limit Ephemeral Storage}">
<f:textbox/>
</f:entry>
<f:entry field="livenessProbe" title="${%Liveness Probe}">
<f:rowSet name="${field}">
<j:set var="descriptor" value="${attrs.propertyDescriptor ?: app.getDescriptorOrDie(descriptor.getPropertyTypeOrDie(instance,field).clazz)}" />
<j:set var="instance" value="${instance[field]}"/>
<st:include from="${descriptor}" page="${descriptor.configPage}" />
</f:rowSet>
</f:entry>
<f:entry title="${%Port Mappings}" description="${%List of exposed ports}">
<f:repeatableHeteroProperty field="ports" hasHeader="true" addCaption="${%Add Port Mapping}"
deleteCaption="${%Delete Port Mapping}" />
</f:entry>
</f:advanced>
</j:jelly>