Skip to content

Commit

Permalink
fix(helm): forward sourceRepositoryCredentialsId from groovy to go la…
Browse files Browse the repository at this point in the history
…yer (#4604)

forward sourceRepositoryCredentialsId from groovy to go layer in the same way how this is done for the targetRepositoryCredentialsId
  • Loading branch information
marcusholl authored Sep 29, 2023
1 parent 4dec3c3 commit c81e322
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/helmExecute_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion resources/metadata/helmExecute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ spec:
- name: dockerConfigJsonCredentialsId
description: Jenkins 'Secret file' credentials ID containing Docker config.json (with registry credential(s)).
type: jenkins
- name: sourceRepositoryCredentialsId
description: Jenkins 'Username Password' credentials ID containing username and password for the Helm Repository authentication (source repo)
type: jenkins
- name: targetRepositoryCredentialsId
description: Jenkins 'Username Password' credentials ID containing username and password for the Helm Repository authentication
description: Jenkins 'Username Password' credentials ID containing username and password for the Helm Repository authentication (target repo)
type: jenkins
resources:
- name: deployDescriptor
Expand Down
1 change: 1 addition & 0 deletions vars/helmExecute.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ void call(Map parameters = [:]) {
List credentials = [
[type: 'file', id: 'kubeConfigFileCredentialsId', env: ['PIPER_kubeConfig']],
[type: 'file', id: 'dockerConfigJsonCredentialsId', env: ['PIPER_dockerConfigJSON']],
[type: 'usernamePassword', id: 'sourceRepositoryCredentialsId', env: ['PIPER_sourceRepositoryUser', 'PIPER_sourceRepositoryPassword']],
[type: 'usernamePassword', id: 'targetRepositoryCredentialsId', env: ['PIPER_targetRepositoryUser', 'PIPER_targetRepositoryPassword']],
]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
Expand Down

0 comments on commit c81e322

Please sign in to comment.