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