24 lines
857 B
Groovy
24 lines
857 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('build') {
|
|
steps {
|
|
withChecks(name: 'test-coverage', includeStage: true) {
|
|
sh './gradlew clean test jacocoTestReport jacocoTestCoverageVerification'
|
|
junit '**/build/test-results/test/TEST-*.xml'
|
|
recordCoverage(tools: [[parser: 'JACOCO']],
|
|
id: 'jacoco', name: 'JaCoCo Coverage',
|
|
sourceCodeRetention: 'EVERY_BUILD'
|
|
// , qualityGates: [
|
|
// [threshold: 40.0, metric: 'LINE', baseline: 'PROJECT', unstable: true],
|
|
// [threshold: 40.0, metric: 'BRANCH', baseline: 'PROJECT', unstable: true]]
|
|
)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|