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:
parent
3270c8dbec
commit
e267622309
@ -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)){
|
||||
|
Loading…
Reference in New Issue
Block a user