From 4da4ced95ea32cf1fd4051eb01c6e6952cef6806 Mon Sep 17 00:00:00 2001 From: Srinikitha Kondreddy Date: Thu, 15 Sep 2022 19:32:09 +0200 Subject: [PATCH] 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 --- vars/npmExecuteEndToEndTests.groovy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vars/npmExecuteEndToEndTests.groovy b/vars/npmExecuteEndToEndTests.groovy index 3b47c4a5f..4b119ac8c 100644 --- a/vars/npmExecuteEndToEndTests.groovy +++ b/vars/npmExecuteEndToEndTests.groovy @@ -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) {