1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

feature(protecodeExecuteScan) proper Vault support (#2483)

This commit is contained in:
Oliver Nocon 2020-12-22 17:43:57 +01:00 committed by GitHub
parent b101106a05
commit 4bd155d1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -321,6 +321,12 @@ func protecodeExecuteScanMetadata() config.StepData {
Param: "username",
Type: "secret",
},
{
Name: "",
Paths: []string{"$(vaultPath)/protecode", "$(vaultBasePath)/$(vaultPipelineName)/protecode", "$(vaultBasePath)/GROUP-SECRETS/protecode"},
Type: "vaultSecret",
},
},
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "string",
@ -335,6 +341,12 @@ func protecodeExecuteScanMetadata() config.StepData {
Param: "password",
Type: "secret",
},
{
Name: "",
Paths: []string{"$(vaultPath)/protecode", "$(vaultBasePath)/$(vaultPipelineName)/protecode", "$(vaultBasePath)/GROUP-SECRETS/protecode"},
Type: "vaultSecret",
},
},
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "string",

View File

@ -174,6 +174,11 @@ spec:
- name: protecodeCredentialsId
type: secret
param: username
- type: vaultSecret
paths:
- $(vaultPath)/protecode
- $(vaultBasePath)/$(vaultPipelineName)/protecode
- $(vaultBasePath)/GROUP-SECRETS/protecode
- name: password
type: string
description: Password which is used for the user
@ -187,6 +192,11 @@ spec:
- name: protecodeCredentialsId
type: secret
param: password
- type: vaultSecret
paths:
- $(vaultPath)/protecode
- $(vaultBasePath)/$(vaultPipelineName)/protecode
- $(vaultBasePath)/GROUP-SECRETS/protecode
- name: artifactVersion
type: string
description: The version of the artifact to allow identification in protecode backend