1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

Add helmExecute.groovy (#3658)

* Add helmExecute.groovy

* Add helmExecute in fieldRelatedWhitelist

* Fix helmExecute.groovy

Co-authored-by: “Vitalii <“vitalii.sidorov@sap.com”>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
Vitalii Sidorov 2022-03-25 12:45:52 +04:00 committed by GitHub
parent 08f26e9605
commit 5926aa7f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -205,6 +205,7 @@ public class CommonStepsTest extends BasePiperTest{
'transportRequestUploadCTS', //implementing new golang pattern without fields
'isChangeInDevelopment', //implementing new golang pattern without fields
'golangBuild', //implementing new golang pattern without fields
'helmExecute', //implementing new golang pattern without fields
'apiProxyDownload', //implementing new golang pattern without fields
'apiKeyValueMapDownload', //implementing new golang pattern without fields
'apiProviderDownload', //implementing new golang pattern without fields

9
vars/helmExecute.groovy Normal file
View File

@ -0,0 +1,9 @@
import groovy.transform.Field
@Field String STEP_NAME = getClass().getName()
@Field String METADATA_FILE = "metadata/helmExecute.yaml"
void call(Map parameters = [:]) {
List credentials = [[type: 'file', id: 'dockerConfigJsonCredentialsId', env: ['PIPER_dockerConfigJSON']]]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
}