fix/pipeline #16
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -16,9 +16,9 @@ pipeline {
|
|||||||
recordCoverage(tools: [[parser: 'JACOCO']],
|
recordCoverage(tools: [[parser: 'JACOCO']],
|
||||||
id: 'jacoco', name: 'JaCoCo Coverage',
|
id: 'jacoco', name: 'JaCoCo Coverage',
|
||||||
sourceCodeRetention: 'EVERY_BUILD'
|
sourceCodeRetention: 'EVERY_BUILD'
|
||||||
// , qualityGates: [
|
, qualityGates: [
|
||||||
// [threshold: 60.0, metric: 'LINE', baseline: 'PROJECT', unstable: true],
|
[threshold: 40.0, metric: 'LINE', baseline: 'PROJECT', unstable: true],
|
||||||
// [threshold: 60.0, metric: 'BRANCH', baseline: 'PROJECT', unstable: true]]
|
[threshold: 40.0, metric: 'BRANCH', baseline: 'PROJECT', unstable: true]]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,27 +37,35 @@ jacoco {
|
|||||||
toolVersion = "0.8.12"
|
toolVersion = "0.8.12"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.jacocoTestCoverageVerification {
|
tasks.jacocoTestReport {
|
||||||
violationRules {
|
reports {
|
||||||
rule {
|
xml.required = true
|
||||||
limit {
|
csv.required = false
|
||||||
minimum = "0.4".toBigDecimal()
|
html.required = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rule {
|
//tasks.jacocoTestCoverageVerification {
|
||||||
isEnabled = false
|
// violationRules {
|
||||||
element = "CLASS"
|
// rule {
|
||||||
includes = listOf("jenkins.test.*")
|
// limit {
|
||||||
|
// minimum = "0.4".toBigDecimal()
|
||||||
limit {
|
// }
|
||||||
counter = "LINE"
|
// }
|
||||||
value = "TOTALCOUNT"
|
//
|
||||||
maximum = "0.3".toBigDecimal()
|
// rule {
|
||||||
}
|
// isEnabled = false
|
||||||
}
|
// element = "CLASS"
|
||||||
}
|
// includes = listOf("jenkins.test.*")
|
||||||
}
|
//
|
||||||
|
// limit {
|
||||||
|
// counter = "LINE"
|
||||||
|
// value = "TOTALCOUNT"
|
||||||
|
// maximum = "0.3".toBigDecimal()
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
// Define the main class for the application.
|
// Define the main class for the application.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user