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:
parent
dc2e5ba856
commit
0831a244d3
@ -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())
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user