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 --- src/BuildConfig.groovy | 2 +- vars/utils.groovy | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BuildConfig.groovy b/src/BuildConfig.groovy index a43ede6..87cec27 100644 --- a/src/BuildConfig.groovy +++ b/src/BuildConfig.groovy @@ -19,7 +19,7 @@ class BuildConfig implements Serializable { def failedFailureNewThresh = '' def failedFailureThresh = '' def failedUnstableNewThresh = '' - def failedUnstableThresh= '' + def failedUnstableThresh= '0' def skippedFailureNewThresh = '' def skippedFailureThresh = '' 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