-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
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' }