fix/pipeline #21

Closed
bquarkz wants to merge 20 commits from fix/pipeline into master
2 changed files with 30 additions and 22 deletions
Showing only changes of commit b3e3a68736 - Show all commits

6
Jenkinsfile vendored
View File

@ -16,9 +16,9 @@ pipeline {
recordCoverage(tools: [[parser: 'JACOCO']],
id: 'jacoco', name: 'JaCoCo Coverage',
sourceCodeRetention: 'EVERY_BUILD'
// , qualityGates: [
// [threshold: 60.0, metric: 'LINE', baseline: 'PROJECT', unstable: true],
// [threshold: 60.0, metric: 'BRANCH', baseline: 'PROJECT', unstable: true]]
, qualityGates: [
[threshold: 40.0, metric: 'LINE', baseline: 'PROJECT', unstable: true],
[threshold: 40.0, metric: 'BRANCH', baseline: 'PROJECT', unstable: true]]
)
}
}

View File

@ -37,27 +37,35 @@ jacoco {
toolVersion = "0.8.12"
}
tasks.jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = "0.4".toBigDecimal()
tasks.jacocoTestReport {
reports {
xml.required = true
csv.required = false
html.required = false
}
}
rule {
isEnabled = false
element = "CLASS"
includes = listOf("jenkins.test.*")
limit {
counter = "LINE"
value = "TOTALCOUNT"
maximum = "0.3".toBigDecimal()
}
}
}
}
//tasks.jacocoTestCoverageVerification {
// violationRules {
// rule {
// limit {
// minimum = "0.4".toBigDecimal()
// }
// }
//
// rule {
// isEnabled = false
// element = "CLASS"
// includes = listOf("jenkins.test.*")
//
// limit {
// counter = "LINE"
// value = "TOTALCOUNT"
// maximum = "0.3".toBigDecimal()
// }
// }
// }
//}
application {
// Define the main class for the application.