mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
Merge pull request #35 from marcusholl/pr/FixDefaultValueCacheGetInstance
fix default value cache get instance
This commit is contained in:
commit
b54fd85755
@ -1,5 +1,7 @@
|
|||||||
package com.sap.piper
|
package com.sap.piper
|
||||||
|
|
||||||
|
import com.cloudbees.groovy.cps.NonCPS
|
||||||
|
|
||||||
class DefaultValueCache implements Serializable {
|
class DefaultValueCache implements Serializable {
|
||||||
private static DefaultValueCache instance
|
private static DefaultValueCache instance
|
||||||
|
|
||||||
@ -9,6 +11,7 @@ class DefaultValueCache implements Serializable {
|
|||||||
this.defaultValues = defaultValues
|
this.defaultValues = defaultValues
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonCPS
|
||||||
static getInstance(){
|
static getInstance(){
|
||||||
return instance
|
return instance
|
||||||
}
|
}
|
||||||
@ -17,6 +20,7 @@ class DefaultValueCache implements Serializable {
|
|||||||
instance = new DefaultValueCache(defaultValues)
|
instance = new DefaultValueCache(defaultValues)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonCPS
|
||||||
Map getDefaultValues(){
|
Map getDefaultValues(){
|
||||||
return defaultValues
|
return defaultValues
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user