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

usernamePassword binding not setting variables correctly on Windows container

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins v2.375
      Credentials Binding Plugin v523.vd859a_4b_122e6
      AKS Windows node

      When using the following in a declarative pipeline:

       
      withCredentials([usernamePassword(credentialsId: 'nuget', usernameVariable: 'NUGET_USERNAME', passwordVariable: 'NUGET_PASSWORD')])

      {   set }

       
      The NUGET_USERNAME is not being set at all, but the NUGET_PASSWORD is incorrectly having the set NUGET_USERNAME command appended, as follows:
       

      NUGET_PASSWORD=****set NUGET_USERNAME=nuget

       

      This looks like it is missing a new line between the two operations.

            Unassigned Unassigned
            bencarter_crb Ben
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: