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 || {};