From 4f783e4719e838c37492ac110641ea834ae72643 Mon Sep 17 00:00:00 2001 From: bQUARKz Date: Thu, 20 Feb 2025 07:52:42 +0000 Subject: [PATCH] add withChecks into pipeline --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a709cd8..43cdf4b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,10 +15,11 @@ pipeline { name: 'JaCoCo Coverage', sourceCodeRetention: 'EVERY_BUILD', qualityGates: [ - [threshold: 40.0, metric: 'CLASS', baseline: 'PROJECT'], - [threshold: 40.0, metric: 'METHOD', baseline: 'PROJECT'], - [threshold: 40.0, metric: 'LINE', baseline: 'PROJECT'], - [threshold: 40.0, metric: 'BRANCH', baseline: 'PROJECT']]) + [threshold: 40.0, metric: 'CLASS', baseline: 'PROJECT', unstable: true], + [threshold: 40.0, metric: 'METHOD', baseline: 'PROJECT', unstable: true], + [threshold: 40.0, metric: 'LINE', baseline: 'PROJECT', unstable: true], + [threshold: 40.0, metric: 'INSTRUCTION', baseline: 'PROJECT', unstable: true], + [threshold: 40.0, metric: 'BRANCH', baseline: 'PROJECT', unstable: true]]) junit testResults: '**/build/test-results/test/TEST-*.xml' } }