You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-11-06 09:09:19 +02:00
including vaultSecretFile to parameter generator docu (#3436)
Co-authored-by: anilkeshav27 <you@example.com>
This commit is contained in:
@@ -107,7 +107,7 @@ func parameterFurtherInfo(paramName string, stepData *config.StepData, execution
|
||||
if paramName == param.Name {
|
||||
if param.Secret {
|
||||
secretInfo := "[](#) pass via ENV or Jenkins credentials"
|
||||
if param.GetReference("vaultSecret") != nil {
|
||||
if param.GetReference("vaultSecret") != nil || param.GetReference("vaultSecretFile") != nil {
|
||||
secretInfo = " [](#) [](/) pass via ENV, Vault or Jenkins credentials"
|
||||
|
||||
}
|
||||
@@ -324,7 +324,7 @@ func resourceReferenceDetails(resourceRef []config.ResourceReference) string {
|
||||
}
|
||||
|
||||
func addVaultResourceDetails(resource config.ResourceReference, resourceDetails string) string {
|
||||
if resource.Type == "vaultSecret" {
|
||||
if resource.Type == "vaultSecret" || resource.Type == "vaultSecretFile" {
|
||||
resourceDetails += "<br/>Vault paths: <br />"
|
||||
resourceDetails += "<ul>"
|
||||
for _, rootPath := range config.VaultRootPaths {
|
||||
|
||||
Reference in New Issue
Block a user