Cannot delete configured GHE servers

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

XMLWordPrintable

      Steps to reproduce

      1. Go to http://localhost:8080/manage/configure
      2. Below " GitHub Enterprise Servers ", click "Add"
      3. Because JENKINS-76052 confused you, enter "https://api.github.com" as URL and "Actual GitHub" as the name.
      4. Click Save.
      5. Reload the page after realizing that's not how you make GitHub available in the text field of JENKINS-76052.
      6. Remove "Actual GitHub", leaving the list empty.
      7. Save
      8. Reload the page.

      Expected results

      No servers

      Actual results

      Still there

      Notes

      Looks like https://reports.jenkins.io/core-taglib/jelly-taglib-ref.html#form.3ArepeatableProperty applies here.

      Due to a bug in Stapler data binding the model elements are only set if they consist of one or more values. If all values have been removed in the user interface (i.e. the associated form is empty), then the setter is not invoked anymore. As a workaround, you need to override the corresponding configure method and clear the model property manually before invoking the data binding.

            Assignee:
            Unassigned
            Reporter:
            Daniel Beck
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: