mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
22ee06dc17
* Enable configuration via yaml file * Add documentation * Add tests
11 lines
392 B
Groovy
11 lines
392 B
Groovy
import com.sap.piper.DefaultValueCache
|
|
|
|
def call(Map parameters = [:]) {
|
|
handlePipelineStepErrors (stepName: 'prepareDefaultValues', stepParameters: parameters) {
|
|
if(!DefaultValueCache.getInstance()) {
|
|
Map defaultValues = readYaml text: libraryResource('default_pipeline_environment.yml')
|
|
DefaultValueCache.createInstance(defaultValues)
|
|
}
|
|
}
|
|
}
|