From f26cfa6950a4487597efb46f743e12dbfd76a465 Mon Sep 17 00:00:00 2001 From: bQUARKz Date: Wed, 19 Feb 2025 14:34:54 +0000 Subject: [PATCH] add withChecks into pipeline --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3008c84..e26b6da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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]] + ) } } }