1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/vars/setupCommonPipelineEnvironment.groovy
2017-11-10 16:30:52 +01:00

15 lines
468 B
Groovy

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