mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-20 05:19:40 +02:00
added missing git credentials handling
Co-authored-by: Gareth Evans <g.evans@sap.com>
This commit is contained in:
parent
4b6c6e423c
commit
2740f00134
@ -483,8 +483,9 @@ func golangBuildMetadata() config.StepData {
|
||||
Name: "privateModulesGitToken",
|
||||
ResourceRef: []config.ResourceReference{
|
||||
{
|
||||
Name: "golangPrivateModulesGitTokenCredentialsId",
|
||||
Type: "secret",
|
||||
Name: "golangPrivateModulesGitTokenCredentialsId",
|
||||
Param: "password",
|
||||
Type: "secret",
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -219,6 +219,7 @@ spec:
|
||||
resourceRef:
|
||||
- name: golangPrivateModulesGitTokenCredentialsId
|
||||
type: secret
|
||||
param: password
|
||||
- type: vaultSecret
|
||||
name: golangPrivateModulesGitTokenVaultSecret
|
||||
default: golang
|
||||
|
@ -4,6 +4,8 @@ import groovy.transform.Field
|
||||
@Field String METADATA_FILE = "metadata/golangBuild.yaml"
|
||||
|
||||
void call(Map parameters = [:]) {
|
||||
List credentials = []
|
||||
List credentials = [
|
||||
[type: 'usernamePassword', id: 'golangPrivateModulesGitTokenCredentialsId', env: ['PIPER_privateModulesGitUsername', 'PIPER_privateModulesGitToken']]
|
||||
]
|
||||
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user