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

11 lines
392 B
Groovy
Raw Normal View History

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