1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Accept utils instance from outside (for testing)

This commit is contained in:
Marcus Holl 2018-10-02 10:24:07 +02:00
parent ba725dc52f
commit 799810a987

View File

@ -22,7 +22,8 @@ def call(Map parameters = [:]) {
.mixinGeneralConfig(script.commonPipelineEnvironment, GENERAL_CONFIG_KEYS)
.use()
new Utils().pushToSWA([step: STEP_NAME, stepParam4: parameters.customDefaults?'true':'false'], config)
(parameter.utils ?: new Utils())
.pushToSWA([step: STEP_NAME, stepParam4: parameters.customDefaults?'true':'false'], config)
}
}