add withChecks into pipeline

This commit is contained in:
bQUARKz 2025-02-19 14:34:54 +00:00
parent 4b57b3d45a
commit f26cfa6950

7
Jenkinsfile vendored
View File

@ -13,6 +13,13 @@ pipeline {
withChecks(name: 'test-coverage', includeStage: true) {
sh './gradlew jacocoTestReport jacocoTestCoverageVerification'
junit '**/build/test-results/test/TEST-*.xml'
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]]
)
}
}
}