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

Last credentialsBinding usernamePassword overrides the others instead of adding to list

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.387.1
      Job DSL 1.82
      Credentials Binding Plugin 523.vd859a_4b_122e6

      When defining multiple usernamePassword pairs to be set from credentials only the last one is actually configured in the job.

       

      wrappers {
          credentialsBinding {
              usernamePassword("USER1", "PASS1", "credential1")
              usernamePassword("USER2", "PASS2", "credential2")
          }
      }
      

      Since the UI when manually configuring a job offers the ability to add multiple items I would expect all of them to be configured in the job, not just the last one.

          [JENKINS-70835] Last credentialsBinding usernamePassword overrides the others instead of adding to list

          Matthias Hörmann created issue -
          Vanio Begic made changes -
          Attachment New: image-2023-05-03-06-46-19-386.png [ 60356 ]
          Vanio Begic made changes -
          Attachment New: image-2023-05-03-06-48-06-642.png [ 60357 ]
          Vanio Begic made changes -
          Attachment New: image-2023-05-03-06-48-21-686.png [ 60358 ]
          Vanio Begic made changes -
          Attachment New: image-2023-05-03-06-49-20-691.png [ 60359 ]
          Vanio Begic made changes -
          Attachment New: image-2023-05-03-06-49-49-527.png [ 60360 ]

            jamietanna Jamie Tanna
            mhoermann Matthias Hörmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: