|
|
Hi,
I cannot get the ListBoxModel to work, and I need help.
I have added this jelly to config.jelly: <f:entry name="result" field="result" default="FAILURE" title="In case of problems with this report, set the build result to:"> <select /> </f:entry>
Out of desperation, I have added this method to every place I think it may be called (and I still see no call to it): public ListBoxModel doFillResultItems() { System.out.println("Test 1a"); Logger logger = Logger.getLogger("Foo"); logger.info("Test 1b"); ListBoxModel m = new ListBoxModel(); m.add(Result.FAILURE.toString()); m.add(Result.NOT_BUILT.toString()); m.add(Result.SUCCESS.toString()); m.add(Result.UNSTABLE.toString()); m.add(Result.ABORTED.toString()); m.get(0).selected = true; return m; }
The code can be seen here: https://github.com/martinda/htmlpublisher-plugin/commit/01056f5b46257c3325fd8386d36bbaa74e4baa9c
When I add this modified htmlpublisher plugin to Jenkins, I do see the new UI, but the ListBox is empty. How do I debug this, what's wrong with my code, and how do I not repeat this mistake?
Thanks, Martin
|