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

Add new param for npmExecuteEndToEndTests step (#4012)

* Set default docker image for npmExecuteEndToEndTests

* Adapt docker image param

* Update npmExecuteEndToEndTests.groovy

* Update npmExecuteEndToEndTests.groovy

* Update npmExecuteScripts.groovy

* Update npmExecuteEndToEndTests.groovy

* Update npmExecuteEndToEndTests.groovy

* Clean up

* Remove default image
This commit is contained in:
Srinikitha Kondreddy 2022-09-15 19:32:09 +02:00 committed by GitHub
parent 32152be940
commit 4da4ced95e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,12 @@ import static com.sap.piper.Prerequisites.checkScript
* Boolean to indicate whether the step should only be executed in the productive branch or not.
* @possibleValues `true`, `false`
*/
'onlyRunInProductiveBranch'
'onlyRunInProductiveBranch',
/**
* Docker image on which end to end tests should be executed
*/
'dockerImage'
])
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS
@ -120,7 +125,7 @@ void call(Map parameters = [:]) {
error "[${STEP_NAME}] The parameters property is not of type list. Please provide parameters as a list of strings."
}
}
npmExecuteScripts(script: script, parameters: npmParameters, virtualFrameBuffer: true, runScripts: [config.runScript], scriptOptions: scriptOptions, buildDescriptorExcludeList: config.buildDescriptorExcludeList)
npmExecuteScripts(script: script, parameters: npmParameters, virtualFrameBuffer: true, runScripts: [config.runScript], dockerImage: config.dockerImage, scriptOptions: scriptOptions, buildDescriptorExcludeList: config.buildDescriptorExcludeList)
}
} catch (Exception e) {