From 0831a244d39dc9bb73aa28c4b5d05344d6590cce Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Wed, 17 Oct 2018 11:37:40 +0200 Subject: [PATCH] switch to factory methods when a config is also provided. --- vars/artifactSetVersion.groovy | 2 +- vars/cloudFoundryDeploy.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/artifactSetVersion.groovy b/vars/artifactSetVersion.groovy index b7c493de6..8dc92e706 100644 --- a/vars/artifactSetVersion.groovy +++ b/vars/artifactSetVersion.groovy @@ -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()) diff --git a/vars/cloudFoundryDeploy.groovy b/vars/cloudFoundryDeploy.groovy index d7e5bd7de..040d03244 100644 --- a/vars/cloudFoundryDeploy.groovy +++ b/vars/cloudFoundryDeploy.groovy @@ -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()