mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
15 lines
468 B
Groovy
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)
|
||
|
|
||
|
}
|
||
|
}
|