fix/pipeline #20
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: 40.0, metric: 'LINE', baseline: 'PROJECT', unstable: true],
|
// [threshold: 40.0, metric: 'LINE', baseline: 'PROJECT', unstable: true],
|
||||||
[threshold: 40.0, metric: 'BRANCH', baseline: 'PROJECT', unstable: true]]
|
// [threshold: 40.0, metric: 'BRANCH', baseline: 'PROJECT', unstable: true]]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,35 +37,35 @@ jacoco {
|
|||||||
toolVersion = "0.8.12"
|
toolVersion = "0.8.12"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.jacocoTestReport {
|
//tasks.jacocoTestReport {
|
||||||
reports {
|
// reports {
|
||||||
xml.required = true
|
// xml.required = true
|
||||||
csv.required = false
|
// csv.required = false
|
||||||
html.required = false
|
// html.required = true
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
tasks.jacocoTestCoverageVerification {
|
||||||
|
violationRules {
|
||||||
|
rule {
|
||||||
|
limit {
|
||||||
|
minimum = "0.4".toBigDecimal()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//tasks.jacocoTestCoverageVerification {
|
rule {
|
||||||
// violationRules {
|
isEnabled = true
|
||||||
// rule {
|
element = "CLASS"
|
||||||
// limit {
|
includes = listOf("jenkins.test.*")
|
||||||
// minimum = "0.4".toBigDecimal()
|
|
||||||
// }
|
limit {
|
||||||
// }
|
counter = "LINE"
|
||||||
//
|
value = "TOTALCOUNT"
|
||||||
// rule {
|
minimum = "0.3".toBigDecimal()
|
||||||
// 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