mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
parent
3da753930c
commit
85b277c7c6
@ -283,6 +283,8 @@ func populateCredentialsAsEnvs(config *StepConfig, secret map[string]string, key
|
||||
envVariable := vaultCredentialEnvPrefix + convertEnvVar(secretKey)
|
||||
log.Entry().Debugf("Exposing general purpose credential '%v' as '%v'", key, envVariable)
|
||||
os.Setenv(envVariable, secretValue)
|
||||
|
||||
log.RegisterSecret(piperutils.EncodeString(secretValue))
|
||||
envVariable = vaultCredentialEnvPrefix + convertEnvVar(secretKey) + "_BASE64"
|
||||
log.Entry().Debugf("Exposing general purpose base64 encoded credential '%v' as '%v'", key, envVariable)
|
||||
os.Setenv(envVariable, piperutils.EncodeString(secretValue))
|
||||
@ -301,6 +303,8 @@ func populateCredentialsAsEnvs(config *StepConfig, secret map[string]string, key
|
||||
envVariable := vaultCredentialEnvPrefixDefault + convertEnvVar(secretKey)
|
||||
log.Entry().Debugf("Exposing general purpose credential '%v' as '%v'", key, envVariable)
|
||||
os.Setenv(envVariable, secretValue)
|
||||
|
||||
log.RegisterSecret(piperutils.EncodeString(secretValue))
|
||||
envVariable = vaultCredentialEnvPrefixDefault + convertEnvVar(secretKey) + "_BASE64"
|
||||
log.Entry().Debugf("Exposing general purpose base64 encoded credential '%v' as '%v'", key, envVariable)
|
||||
os.Setenv(envVariable, piperutils.EncodeString(secretValue))
|
||||
|
Loading…
x
Reference in New Issue
Block a user