-
Bug
-
Resolution: Unresolved
-
Major
-
None
Steps to reproduce
- Go to http://localhost:8080/manage/configure
- Below " GitHub Enterprise Servers ", click "Add"
- Because JENKINS-76052 confused you, enter "https://api.github.com" as URL and "Actual GitHub" as the name.
- Click Save.
- Reload the page after realizing that's not how you make GitHub available in the text field of JENKINS-76052.
- Remove "Actual GitHub", leaving the list empty.
- Save
- 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.