-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathOSRFWinCompilation.groovy
76 lines (68 loc) · 1.91 KB
/
OSRFWinCompilation.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
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
package _configs_
import javaposse.jobdsl.dsl.Job
/*
-> OSRFWinBase
-> GenericCompilation
Implements:
- compiler warning
*/
class OSRFWinCompilation extends OSRFWinBase
{
static void create(Job job, enable_testing = true, enable_cmake_warnings = false)
{
OSRFWinBase.create(job)
/* Properties from generic compilations */
GenericCompilation.create(job, enable_testing)
job.with
{
parameters {
stringParam('BUILD_TYPE', 'Release','Release|Debug compilation type for MSVC')
}
publishers
{
configure { project ->
project / publishers / 'io.jenkins.plugins.analysis.core.steps.IssuesRecorder' {
analysisTools {
'io.jenkins.plugins.analysis.warnings.MsBuild' {
id()
name()
pattern()
reportEncoding()
skipSymbolicLinks(false)
}
if (enable_cmake_warnings) {
'io.jenkins.plugins.analysis.warnings.Cmake' {
id()
name()
pattern()
reportEncoding()
skipSymbolicLinks(false)
}
}
}
sourceCodeEncoding()
ignoreQualityGate(false)
ignoreFailedBuilds(true)
referenceJobName()
healthy(0)
unhealthy(0)
minimumSeverity {
name('LOW')
}
filters { }
isEnabledForFailure(false)
isAggregatingResults(false)
isBlameDisabled(false)
qualityGates {
'io.jenkins.plugins.analysis.core.util.QualityGate' {
threshold(1)
type('TOTAL')
status('WARNING')
}
}
}
}
}
} // end of job
} // end of method createJob
} // end of class