1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/vars/prepareDefaultValues.groovy
Daniel Kurzynski 22ee06dc17 Enable configuration via yaml file + mavenExecute as example (#18)
* Enable configuration via yaml file
* Add documentation 
* Add tests
2017-12-06 12:03:06 +01:00

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)
}
}
}