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

Add a `none` option when no credential is added to server configuration

    XMLWordPrintable

    Details

    • Similar Issues:
    • Sprint:
      GSoC 2019. Coding Phase 1

      Description

      In some cases, user might not require to supply credentials or maybe the credentials listbox is empty. So in that case, credentialsId listbox should display an empty value.

        Attachments

          Activity

          Hide
          baymac Parichay Barpanda added a comment - - edited

          This was fixed by chaining a method to the StandardListBox object returned from the `doFillCredentialsIdItems` method.

          The ListBox returned is:

          new StandardListBoxModel()
          .includeEmptyValue()
          .includeMatchingAs(...)

          This was inspired from GitHub Plugin. Can also be implemented in Gitea Plugin.

          Show
          baymac Parichay Barpanda added a comment - - edited This was fixed by chaining a method to the StandardListBox object returned from the `doFillCredentialsIdItems` method. The ListBox returned is: new StandardListBoxModel() .includeEmptyValue() .includeMatchingAs(...) This was inspired from GitHub Plugin. Can also be implemented in Gitea Plugin.

            People

            Assignee:
            baymac Parichay Barpanda
            Reporter:
            baymac Parichay Barpanda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: