Hi,
I have created a build step that contains a simple drop-down list that should provide different UI pieces depending on selection. Selection contains just 2 hard-coded items.
That's how I implemented it:
<f:dropdownList name="eventType" title="Event type">
<f:dropdownListBlock title="Event as XML" value="eventXml">
Event XML is selected
</f:dropdownListBlock>
<f:dropdownListBlock title="Event as Maven GAV" value="eventGav">
Event GAV is selected
</f:dropdownListBlock>
</f:dropdownList>
The sample text lines in blocks will be replaced by actual Jelly code - I wanted to start with something very simple. All I need is to get at this stage in my Builder is a String (eventXml or eventGav).
Appropriate Java code:
public class EventDispatcher extends Builder {
..............
private String eventType;
@DataBoundConstructor
public BaselineDefinedMessageDispatcher(..............,
final String eventType) {
..............
this.eventType = eventType;
}
public String getEventType() {
return eventType;
}
public void setEventType(String eventType) {
this.eventType = eventType;
}
..............
}
As soon as I added the mentioned Jelly block to my config.jelly...The build step is just not added to the job configuration any more! No errors or exceptions anywhere...
I browsed Jelly tags' docs (
https://jenkins-ci.org/maven-site/jenkins-core/jelly-taglib-ref.html), but there are no instructions about how to bind this stuff in Java.
I installed the ui-samples-plugin, but there are uber-complicated samples...
Please tell me what am I doing wrong. Btw, is there any way to tell Jenkins to log all Jelly parsing and mapping errors?
Regards,
Kirill.