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

Cannot delete configured GHE servers

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.

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: