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

15 lines
468 B
Groovy
Raw Normal View History

2017-07-11 15:12:03 +02:00
def call(Map parameters = [:]) {
handlePipelineStepErrors (stepName: 'setupCommonPipelineEnvironment', stepParameters: parameters) {
def configFile = parameters.get('configFile', '.pipeline/config.properties')
def script = parameters.script
Map configMap = [:]
if (configFile.length() > 0)
configMap = readProperties (file: configFile)
script.commonPipelineEnvironment.setConfigProperties(configMap)
}
}