The plugin will filter the gitlab servers based on unique names. I want to add a field in the GitLabServer DescriptorImpl to send a warning at runtime to enter a unqiue name. But descriptorImpl is static so I haven't been about to figure out how to check if the rest of the servers defined have a different name. Also since DescriptorImpl is in static context, so error is displayed across all fields with non-unique name.
The plugin will filter the gitlab servers based on unique names. I want to add a field in the GitLabServer DescriptorImpl to send a warning at runtime to enter a unqiue name. But descriptorImpl is static so I haven't been about to figure out how to check if the rest of the servers defined have a different name. Also since Since DescriptorImpl is in static context, so error the field is displayed across all fields compare with non-unique name the it's own server object as well and raises an formvalidation error by default.