diff options
| author | Matt Rendina <mrendina@stsci.edu> | 2017-11-30 13:35:22 -0500 |
|---|---|---|
| committer | Matt Rendina <mrendina@stsci.edu> | 2017-11-30 13:35:22 -0500 |
| commit | 7258f570c501eb673ff2681eb4ec7086dbdd8971 (patch) | |
| tree | 4b657869833b01d9cd0be67389d65acc0e7e885a /vars/utils.groovy | |
| parent | fe55b27096a7abae929aaba86785dfcab4783cfb (diff) | |
| download | jscu_refactor-7258f570c501eb673ff2681eb4ec7086dbdd8971.tar.gz | |
Use new clone method
Diffstat (limited to 'vars/utils.groovy')
| -rw-r--r-- | vars/utils.groovy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index 60b76c9..c10b447 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -1,5 +1,6 @@ // Jenkinsfile utilities import BuildConfig.BuildConfig +import org.apache.commons.lang3.SerializationUtils // Clone the source repository and examine the most recent commit message. // If a '[ci skip]' or '[skip ci]' directive is present, immediately @@ -35,7 +36,8 @@ def concurrent(configs) { println("Size of configs = ${configs.size()}") for (config in configs) { def myconfig = new BuildConfig() // MUST be inside for loop. - myconfig = config.copy() + //myconfig = config.copy() + myconfig = SerializationUtils.clone(config) // Code defined within 'tasks' is eventually executed on a separate node. tasks["${config.nodetype}/${config.build_mode}"] = { |
