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

[refactor/streamline ]Use CPE is case the script is not available

This commit is contained in:
Marcus Holl 2017-12-11 13:55:07 +01:00
parent 3270c8dbec
commit e267622309

View File

@ -6,10 +6,8 @@ def call(parameters = [:]) {
handlePipelineStepErrors (stepName: 'neoDeploy', stepParameters: parameters) {
def utils = new Utils()
def script = parameters.script
if (script == null){
script = [commonPipelineEnvironment: commonPipelineEnvironment]
}
def script = parameters?.script ?: [commonPipelineEnvironment: commonPipelineEnvironment]
def archivePath = utils.getMandatoryParameter(parameters, 'archivePath', null)
if (!fileExists(archivePath)){