1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +02:00

switch to factory methods when a config is also provided.

This commit is contained in:
Marcus Holl 2018-10-17 11:37:40 +02:00
parent dc2e5ba856
commit 0831a244d3
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ def call(Map parameters = [:], Closure body = null) {
}
if (config.commitVersion) {
config = new ConfigurationHelper(this, config)
config = ConfigurationHelper.newInstance(this, config)
.addIfEmpty('gitSshUrl', isAppContainer(config)
?script.commonPipelineEnvironment.getAppContainerProperty('gitSshUrl')
:script.commonPipelineEnvironment.getGitSshUrl())

View File

@ -54,7 +54,7 @@ def call(Map parameters = [:]) {
if (config.deployTool == 'mtaDeployPlugin') {
// set default mtar path
config = new ConfigurationHelper(this, config)
config = ConfigurationHelper.newInstance(this, config)
.addIfEmpty('mtaPath', config.mtaPath?:findMtar())
.use()