Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65931

Add credentials binding for base64 username:password

XMLWordPrintable

      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'
      }
      

       

            Unassigned Unassigned
            rittneje Jesse Rittner
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: