From f2591d9ccbaf687a3d1840c9a3a867774c35b05b Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Tue, 28 Nov 2017 11:08:58 -0500 Subject: Minor cleanup and docs --- vars/utils.groovy | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'vars/utils.groovy') diff --git a/vars/utils.groovy b/vars/utils.groovy index 69713fc..ba23db3 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -17,10 +17,7 @@ def scm_checkout() { skip_job = 1 currentBuild.result = 'SUCCESS' println("\nBuild skipped due to commit message directive.\n") - // System.exit(0) // WARNING: FATAL to Jenkins return skip_job - //throw new hudson.AbortException('Guess what!') - //throw new java.io.IOException('Guess what!') } sh(script: "ls -al") stash includes: '**/*', name: 'source_tree' @@ -30,6 +27,9 @@ def scm_checkout() { } +// Execute build/test tasks in parallel +// Each task is defined by a BuildConfig object. +// A list of such objects is iterated over to process all configurations. def concurrent(configs) { def tasks = [:] println("Size of configs = ${configs.size()}") @@ -62,8 +62,3 @@ def concurrent(configs) { parallel(tasks) } } //end concurrent - -// Allow deep copying of a config object to another instance. -def copy(config) { - return config.createNewInstance() -} -- cgit