From b35986111aca0cf8793a234ecc7f245478988a1c Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 13 Apr 2026 03:47:32 -0300 Subject: [PATCH] ci: fix junit regex parsing in jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index afbfab6..c77acb5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -137,10 +137,10 @@ if (!fs.existsSync(coveragePath)) { } const junit = fs.readFileSync(junitPath, 'utf8'); -const tests = Number((junit.match(/tests="(\d+)"/) || [])[1] || 0); -const failures = Number((junit.match(/failures="(\d+)"/) || [])[1] || 0); -const errors = Number((junit.match(/errors="(\d+)"/) || [])[1] || 0); -const skipped = Number((junit.match(/skipped="(\d+)"/) || [])[1] || 0); +const tests = Number((junit.match(/tests="([0-9]+)"/) || [])[1] || 0); +const failures = Number((junit.match(/failures="([0-9]+)"/) || [])[1] || 0); +const errors = Number((junit.match(/errors="([0-9]+)"/) || [])[1] || 0); +const skipped = Number((junit.match(/skipped="([0-9]+)"/) || [])[1] || 0); const cov = JSON.parse(fs.readFileSync(coveragePath, 'utf8')); const total = cov.total || {};