diff options
| author | Matt Rendina <mrendina@stsci.edu> | 2017-11-28 11:08:58 -0500 |
|---|---|---|
| committer | Matt Rendina <mrendina@stsci.edu> | 2017-11-28 11:08:58 -0500 |
| commit | f2591d9ccbaf687a3d1840c9a3a867774c35b05b (patch) | |
| tree | 1d8cb05e2cdd250434ceaff83d3050d4787335a0 /vars/utils.groovy | |
| parent | 22cc0965316b704c2186776cbdca121f2f8ab4c8 (diff) | |
| download | jscu_refactor-f2591d9ccbaf687a3d1840c9a3a867774c35b05b.tar.gz | |
Minor cleanup and docs
Diffstat (limited to 'vars/utils.groovy')
| -rw-r--r-- | vars/utils.groovy | 11 |
1 files changed, 3 insertions, 8 deletions
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() -} |
