1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

fix nonCPS issue

This commit is contained in:
Christopher Fenner 2018-03-16 11:31:58 +01:00 committed by GitHub
parent 2bd7ffb529
commit 5f73845838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,8 @@ package com.sap.piper
class ConfigurationHelper implements Serializable {
static def loadStepDefaults(Script step){
return new ConfigurationHelper(step)
.initDefaults(step)
.loadDefaults(step)
}
private Map config
@ -11,8 +13,16 @@ class ConfigurationHelper implements Serializable {
ConfigurationHelper(Script step){
name = step.STEP_NAME
if(!name) throw new IllegalArgumentException('Step has no public name property!')
}
ConfigurationHelper initDefaults(Script step){
step.prepareDefaultValues()
return this
}
ConfigurationHelper loadDefaults(Script step){
config = ConfigurationLoader.defaultStepConfiguration(step, name)
return this
}
ConfigurationHelper mixinStepConfig(commonPipelineEnvironment, Set filter = null){