/
config.groovy
47 lines (39 loc) · 1.6 KB
/
config.groovy
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
package org.jenkinsci.plugins.github.config.GitHubPluginConfig
import com.cloudbees.jenkins.GitHubPushTrigger
def f = namespace(lib.FormTagLib);
f.section(title: descriptor.displayName) {
f.entry(title: _("GitHub Servers"),
help: descriptor.getHelpFile()) {
f.repeatableHeteroProperty(
field: "configs",
hasHeader: "true",
addCaption: _("Add GitHub Server"))
}
f.advanced() {
f.validateButton(
title: _("Re-register hooks for all jobs"),
progress: _("Scanning all items..."),
method: "reRegister"
)
if (GitHubPushTrigger.ALLOW_HOOKURL_OVERRIDE) {
f.entry(title: _("Override Hook URL")) {
table(width: "100%", style: "margin-left: 7px;") {
f.optionalBlock(title: _("Specify another hook url for GitHub configuration"),
inline: true,
field: "overrideHookUrl",
checked: instance.overrideHookURL) {
f.entry(field: "hookUrl") {
f.textbox()
}
}
}
}
}
f.entry(title: _("Additional actions"), help: descriptor.getHelpFile('additional')) {
f.hetero_list(items: [],
addCaption: _("Manage additional GitHub actions"),
name: "actions",
oneEach: "true", hasHeader: "true", descriptors: instance.actions())
}
}
}