Last credentialsBinding usernamePassword overrides the others instead of adding to list

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

        1. image-2023-05-03-06-46-19-386.png
          4 kB
          Vanio Begic
        2. image-2023-05-03-06-48-06-642.png
          22 kB
          Vanio Begic
        3. image-2023-05-03-06-48-21-686.png
          25 kB
          Vanio Begic
        4. image-2023-05-03-06-49-20-691.png
          18 kB
          Vanio Begic
        5. image-2023-05-03-06-49-49-527.png
          65 kB
          Vanio Begic

            Assignee:
            Jamie Tanna
            Reporter:
            Matthias Hörmann
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: