jenkinsci / jenkinsci/credentials-binding-plugin
[JENKINS-65931] Add credentials binding for base64 username:password
- Dominant language
- Java
- Stars
- 57
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Description
Some tools (e.g., npm) require the credentials to be base64-encoded. Having to manually base64 encode the output of the usernameColonPassword binding is annoying and error prone, since Jenkins does not recognized the base64-encoded version as something to redact.
Please add a usernameColonPasswordBase64 binding that works the same way, except the environment variable will contain the base64-encoded credentials.
For example:
withCredentials([usernameColonPasswordBase64(credentialsId: 'my-id', variable: 'NPM_CONFIG__auth')]) {
sh 'npm ci'
}
---
Originally reported by rittneje, imported from: Add credentials binding for base64 username:password
Raw content of original issue
Some tools (e.g., npm) require the credentials to be base64-encoded. Having to manually base64 encode the output of the usernameColonPassword binding is annoying and error prone, since Jenkins does not recognized the base64-encoded version as something to redact.
Please add a usernameColonPasswordBase64 binding that works the same way, except the environment variable will contain the base64-encoded credentials.
For example:
withCredentials([usernameColonPasswordBase64(credentialsId: 'my-id', variable: 'NPM_CONFIG__auth')]) {
sh 'npm ci'
}
Contributor guide
Assessment
This issue has not been assessed yet.