diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2018-12-03 10:58:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-03 10:58:46 -0500 |
commit | 1922dd1cd0e7a19f10ff5faae8c2c38003f727fd (patch) | |
tree | d6229d0c8a1ee30bd0b70dea2336f817c8af6554 | |
parent | 85526ccee61b0ffc58c9b03350a0c5652dbff9bf (diff) | |
download | jscu_refactor-1922dd1cd0e7a19f10ff5faae8c2c38003f727fd.tar.gz |
Set default failedUnstableThresh to '0'. (#26)1.2.9
Failure threshold sets status to unstable rather than failed.
Print threshold summary
-rw-r--r-- | src/BuildConfig.groovy | 2 | ||||
-rw-r--r-- | vars/utils.groovy | 5 |
2 files changed, 6 insertions, 1 deletions
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: [ |