forked from nemccarthy/stash-pullrequest-builder-plugin
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathconfig.jelly
82 lines (82 loc) · 3.93 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'?>
<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" xmlns:c="/lib/credentials">
<f:entry title="Cron schedule" field="cron">
<f:textbox />
</f:entry>
<f:entry title="Stash URL" field="stashHost">
<f:textbox />
</f:entry>
<f:nested>
<table>
<f:optionalBlock title="Enable proxy" name="proxySettings" checked="${instance.getProxySettings() != null}">
<f:nested>
<table>
<f:radioBlock name="proxyChoice" value="jenkins" title="Inherit from Jenkins" checked="${(instance.getProxySettings() != null) ? instance.isProxyType('jenkins') : true}">
</f:radioBlock>
<f:radioBlock name="proxyChoice" value="custom" title="Custom" checked="${(instance.getProxySettings() != null) ? instance.isProxyType('custom') : false}">
<f:entry title="Proxy Host" field="proxyHost">
<f:textbox value="${(instance.getProxySettings() != null && instance.isProxyType('custom')) ? instance.getProxyDetails().getString('proxyHost') : ''}" />
</f:entry>
<f:entry title="Proxy Port" field="proxyPort">
<f:textbox value="${(instance.getProxySettings() != null && instance.isProxyType('custom')) ? instance.getProxyDetails().getInt('proxyPort') : ''}" />
</f:entry>
<f:entry title="Proxy Username" field="proxyUser">
<f:textbox value="${(instance.getProxySettings() != null && instance.isProxyType('custom')) ? instance.getProxyDetails().getString('proxyUser') : ''}" />
</f:entry>
<f:entry title="Password" field="proxyPass">
<f:password value="${(instance.getProxySettings() != null && instance.isProxyType('custom')) ? instance.getProxyDetails().getString('proxyPass') : ''}" />
</f:entry>
</f:radioBlock>
</table>
</f:nested>
</f:optionalBlock>
</table>
</f:nested>
<f:entry title="Stash credentials (username/password)" field="credentialsId">
<c:select />
</f:entry>
<f:entry title="Project" field="projectCode">
<f:textbox />
</f:entry>
<f:entry title="Repository Name" field="repositoryName">
<f:textbox />
</f:entry>
<f:advanced>
<f:entry title="Ignore SSL certificates" field="ignoreSsl">
<f:checkbox default="false"/>
</f:entry>
<f:entry title="Build PR targeting only these branches" field="targetBranchesToBuild">
<f:textbox default="" />
</f:entry>
<f:entry title="Rebuild if destination branch changes" field="checkDestinationCommit">
<f:checkbox />
</f:entry>
<f:entry title="Build only if Stash reports no conflicts" field="checkNotConflicted">
<f:checkbox default="true"/>
</f:entry>
<f:entry title="Build only if Stash reports PR is mergeable" field="checkMergeable">
<f:checkbox default="false"/>
</f:entry>
<f:entry title="Probe Stash for merge status" field="checkProbeMergeStatus">
<f:checkbox default="false"/>
</f:entry>
<f:entry title="Merge PR if build is successful" field="mergeOnSuccess">
<f:checkbox default="false"/>
</f:entry>
<f:entry title="Keep PR comment only for most recent build" field="deletePreviousBuildFinishComments">
<f:checkbox default="false"/>
</f:entry>
<f:entry title="Cancel outdated jobs" field="cancelOutdatedJobsEnabled">
<f:checkbox default="false"/>
</f:entry>
<f:entry title="Phrase to disable builds" field="ciSkipPhrases">
<f:textbox default="NO TEST" />
</f:entry>
<f:entry title="Only build if asked with the build phrase" field="onlyBuildOnComment">
<f:checkbox default="false"/>
</f:entry>
<f:entry title="Phrase to request a (re-)build" field="ciBuildPhrases">
<f:textbox default="test this please"/>
</f:entry>
</f:advanced>
</j:jelly>