From 1922dd1cd0e7a19f10ff5faae8c2c38003f727fd Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Mon, 3 Dec 2018 10:58:46 -0500 Subject: Set default failedUnstableThresh to '0'. (#26) Failure threshold sets status to unstable rather than failed. Print threshold summary --- vars/utils.groovy | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vars/utils.groovy') diff --git a/vars/utils.groovy b/vars/utils.groovy index c37ea21..eacba36 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -443,6 +443,11 @@ def run(configs, concurrent = true) { // root of the workspace, the XUnitBuilder report // ingestion will fail. report_exists = sh(script: "test -e *.xml", returnStatus: true) + def thresh_summary = "failedUnstableThresh: ${myconfig.failedUnstableThresh}\n" + + "failedFailureThresh: ${myconfig.failedFailureThresh}\n" + + "skippedUnstableThresh: ${myconfig.skippedUnstableThresh}\n" + + "skippedFailureThresh: ${myconfig.skippedFailureThresh}" + println(thresh_summary) if (report_exists == 0) { step([$class: 'XUnitBuilder', thresholds: [ -- cgit