From 9d0209ce82474a3ed230e8c4267c265c058daa0f Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Tue, 20 Nov 2018 17:44:48 -0500 Subject: Create a JobConfig object containing default values. --- vars/utils.groovy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vars/utils.groovy') diff --git a/vars/utils.groovy b/vars/utils.groovy index e9dc747..50d17df 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -25,7 +25,6 @@ def github(reponame, username, password, subject, message) { // If no skip directive is found, or skip_disable is true, stash all the // source files for efficient retrieval by subsequent nodes. def scm_checkout(args = ['skip_disable':false]) { - def JobConfig jc = new JobConfig() skip_job = 0 node("on-master") { stage("Setup") { @@ -231,8 +230,7 @@ def test_summary_notify(single_issue) { def run(configs, concurrent = true) { // Split off any JobConfig object, leaving the config objects. - def ljobconfig = null - def lconfigs = [] + def ljobconfig = new JobConfig() // Set default values. configs.eachWithIndex { config, index -> if (config.getClass() == JobConfig) { ljobconfig = config -- cgit