Last credentialsBinding usernamePassword overrides the others instead of adding to list

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Environment:
      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.

        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
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: