From 7f44a8306f820a01b4ad6d9bc1df4e25fee7868d Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Wed, 29 Nov 2017 15:44:22 -0500 Subject: Test parameter insertion --- src/BuildConfig.groovy | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/BuildConfig.groovy') diff --git a/src/BuildConfig.groovy b/src/BuildConfig.groovy index 4696381..6c9aeab 100644 --- a/src/BuildConfig.groovy +++ b/src/BuildConfig.groovy @@ -1,6 +1,6 @@ // src/BuildConfig.groovy package BuildConfig; -import org.jenkinsci.plugins.xunit.threshold.XUnitThreshold +//import org.jenkinsci.plugins.xunit.threshold.XUnitThreshold //@AutoClone // annotation is not CPS-compatible? class BuildConfig implements Serializable { @@ -10,9 +10,18 @@ class BuildConfig implements Serializable { def build_cmds = [] def test_cmds = [] def run_tests = true - def thresh = XUnitThreshold() def thresholds = [[$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: ''], [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '']] + def failedFailureNewThresh = '' + def failedFailureThresh = '' + def failedUnstableNewThresh = '' + def failedUnstableThresh= '' + + def skippedFailureNewThresh = '' + def skippedFailureThresh = '' + def skippedUnstableNewThresh = '' + def skippedUnstableThresh= '' + // Constructors BuildConfig() { @@ -23,11 +32,6 @@ class BuildConfig implements Serializable { this.nodetype = nodetype } - //def setTestThreshold(valuemap) { - // for (threshold in this.xunit_map) { - // if (threshold - //} - // copy method requires Jenkins script approval for the // following signatures: // method groovy.lang.MetaBeanProperty getSetter -- cgit