• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • blueocean-plugin
    • None
    • Jenkins: 2.63
      Blue Ocean: 1.0.1

      Steps:- 

      1. Open blue ocean dashboard
      2. Create new pipeline type Git
      3. Add credentials
      4. Provide username and password and click on create credentials
      5. Provide same username and password and click create credentials.

          [JENKINS-44554] Duplication of credentials in blue-ocean

          James Dumay added a comment -

          vivek is there any way we could potentially deduplicate them?

          James Dumay added a comment - vivek is there any way we could potentially deduplicate them?

          Vivek Pandey added a comment -

          jamesdumay To avoid creating new credential, we can do it by computing hash of existing credentials in `git-domain` (minus credential Id) and then avoid creating new one if hash of given credential matches with the existing one. Problem I see with this approach is doing it correctly for different credential types. but I think its doable.

          OTOH, I think there is workaround as well, user can always delete the duplicate ones from classic UI or simply don't create same credentials as new ones, chose that one from the drop down

          Vivek Pandey added a comment - jamesdumay To avoid creating new credential, we can do it by computing hash of existing credentials in `git-domain` (minus credential Id) and then avoid creating new one if hash of given credential matches with the existing one. Problem I see with this approach is doing it correctly for different credential types. but I think its doable. OTOH, I think there is workaround as well, user can always delete the duplicate ones from classic UI or simply don't create same credentials as new ones, chose that one from the drop down

          James Dumay added a comment -

          vivek I am thinking this might not be such a big deal considering what we have planned for Git read/write support soon (using SSH only credentials).

          I am going to close this against that ticket and we can address it there.

          James Dumay added a comment - vivek I am thinking this might not be such a big deal considering what we have planned for Git read/write support soon (using SSH only credentials). I am going to close this against that ticket and we can address it there.

          Darren Graham added a comment -

          This issue is still present in 1.2.4 - Cannot remove these credentials once added via blue ocean as they don't appear in the jenkins credentials area.

          Darren Graham added a comment - This issue is still present in 1.2.4 - Cannot remove these credentials once added via blue ocean as they don't appear in the jenkins credentials area.

          Mukul Garg added a comment -

          dfgraham Blue ocean works on folder credentials. if you are creating pipeline using blue ocean the it creates a blueocean credentials folder and your credentials a re in there.

          Mukul Garg added a comment - dfgraham Blue ocean works on folder credentials. if you are creating pipeline using blue ocean the it creates a blueocean credentials folder and your credentials a re in there.

            Unassigned Unassigned
            gargmukku07 Mukul Garg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: