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

Add credentials binding for base64 username:password

    XMLWordPrintable

    Details

    • Similar Issues:

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

       

        Attachments

          Activity

          Hide
          gerardo Gerardo added a comment -

          Is this being actually considered for development?

          Show
          gerardo Gerardo added a comment - Is this being actually considered for development?

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rittneje Jesse Rittner
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: