-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.jelly
124 lines (98 loc) · 4.62 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?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" escapeText="false">
<!--
This jelly script is used for per-project configuration.
See global.jelly for a general discussion about jelly script.
-->
<f:entry title="Server URL" field="url" help="/plugin/codedx/help-url.html">
<f:textbox clazz="codedx-url"/>
</f:entry>
<f:advanced>
<f:entry field="selfSignedCertificateFingerprint" title="Self-Signed Certificate Fingerprint"
help="/plugin/codedx/help-fingerprint.html">
<f:textbox/>
</f:entry>
</f:advanced>
<f:entry title="Server API Key" field="keyCredentialId" help="/plugin/codedx/help-key.html">
<c:select />
</f:entry>
<f:entry title="Code Dx Project" field="projectId">
<f:select/>
</f:entry>
<f:entry title="Source and Binary Files" field="sourceAndBinaryFiles"
help="/plugin/codedx/help-sourceAndBinaryFiles.html">
<f:textbox default="**"/>
</f:entry>
<table id="gitFetchConfiguration">
<j:set var="gitFetchConfiguration" value="${instance.gitFetchConfiguration}" />
<f:optionalBlock title="Include Git Source" name="gitFetchConfiguration"
checked="${gitFetchConfiguration != null}" help="/plugin/codedx/help-gitFetchConfiguration.html">
<f:entry title="Specific Branch Name" field="specificBranch" help="/plugin/codedx/help-specificBranch.html">
<f:textbox value="${gitFetchConfiguration.specificBranch}" />
</f:entry>
</f:optionalBlock>
</table>
<f:entry title="Tool Output Files" field="toolOutputFiles" help="/plugin/codedx/help-toolOutputFiles.html">
<f:textbox/>
</f:entry>
<f:entry title="Analysis Name" field="analysisName" help="/plugin/codedx/help-analysisName.html">
<f:textbox default="Build #$${BUILD_NUMBER}"/>
</f:entry>
<f:entry title="Target Branch" field="targetBranchName" help="/plugin/codedx/help-targetBranch.html">
<f:textbox/>
</f:entry>
<f:entry title="Base Branch" field="baseBranchName" help="/plugin/codedx/help-baseBranch.html">
<f:textbox/>
</f:entry>
<f:entry title="Error Handling" field="errorHandlingBehavior" help="/plugin/codedx/help-errorHandlingBehavior.html">
<!-- note: we could use <enum> instead, but it looks like this is semi-broken and unreliable (depending on jenkins version) -->
<f:select default="MarkFailed" />
</f:entry>
<f:block>
<table id="analysisResultConfiguration">
<j:set var="analysisResultConfiguration" value="${instance.analysisResultConfiguration}"/>
<f:optionalBlock title="Wait for Analysis Results" name="analysisResultConfiguration"
checked="${analysisResultConfiguration != null}"
help="/plugin/codedx/help-analysisResultConfiguration.html">
<f:section title="Policy Behavior">
<f:entry title="'Break build' Action" field="policyBreakBuildBehavior" help="/plugin/codedx/help-policyBreakBuildBehavior.html">
<f:select default="MarkFailed" value="${analysisResultConfiguration.policyBreakBuildBehavior}" />
</f:entry>
</f:section>
<f:section title="Build Failure Conditions">
<f:entry title="Severity" field="failureSeverity" help="/plugin/codedx/help-failureSeverity.html">
<f:select value="${analysisResultConfiguration.failureSeverity}"/>
</f:entry>
<f:entry title="Only consider new findings." field="failureOnlyNew"
help="/plugin/codedx/help-failureOnlyNew.html">
<f:checkbox checked="${analysisResultConfiguration.failureOnlyNew}"/>
</f:entry>
</f:section>
<f:section title="Build Unstable Conditions">
<f:entry title="Severity" field="unstableSeverity" help="/plugin/codedx/help-unstableSeverity.html">
<f:select value="${analysisResultConfiguration.unstableSeverity}"/>
</f:entry>
<f:entry title="Only consider new findings." field="unstableOnlyNew"
help="/plugin/codedx/help-unstableOnlyNew.html">
<f:checkbox checked="${analysisResultConfiguration.unstableOnlyNew}"/>
</f:entry>
</f:section>
<f:section title="Graph Options">
<f:entry title="Number of Builds in Graph" field="numBuildsInGraph"
description="Any value less than 2 means unlimited.">
<f:number value="${analysisResultConfiguration.numBuildsInGraph}" default="0" clazz="number"/>
</f:entry>
</f:section>
</f:optionalBlock>
</table>
</f:block>
<f:section title="Advanced Options">
<f:advanced>
<f:entry title="Excluded Source and Binary Files" field="excludedSourceAndBinaryFiles"
help="/plugin/codedx/help-excludedSourceAndBinaryFiles.html">
<f:textbox/>
</f:entry>
</f:advanced>
</f:section>
</j:jelly>