fix/pipeline #15

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

6
Jenkinsfile vendored
View File

@ -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]]
) )
} }
} }

View File

@ -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.