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:
parent
2bd7ffb529
commit
5f73845838
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user