Hi,
I'm developing a plugin to integrate an external application via CLI and it
should work for both Jenkins and Hudson, the problem I'm having is that the
Json (formData):
Descriptor.newInstance(StaplerRequest req, JSONObject formData)
has a different structure, so the @DataboundConstructor's either works for
Hudson or for Jenkins but not for both. Could this be related to the two
particular versions of hudson and Jenkins?
I'm building for Hudson 3.2.1 and Jenkins 1.532.3.
The problem is specific to radioBlocks, in Hudson I get:
"generateSettings": {
"generateMode": {
"value": "openApplication"
},
"applicationFile": "wef"
}
the value attribute is inside the generateMode radioblock but the entries
are inline.
and in Jenkins I get:
"generateSettings": {
"generateMode": {
"value": "openApplication",
"applicationFile": "wef"
}
The inside the radio block are placed inside the radioblock generateMode.
this is the jelly:
...
<f:radioBlock name="generateMode"
value="openApplication" title="Open application file"
checked="${instance.cliSettings.generateSettings.generateMode ==
'openApplication'}" inline="false">
<f:entry field="cli.applicationFile"
title="Application file" description="(.paf, .dsw, .sln, .ewf, .epf)">
<f:textbox name="cli.applicationFile"
value="${instance.cliSettings.generateSettings.applicationFile}"/>
</f:entry>
</f:radioBlock>
...
I have tried inline true and false and in hudson it has no effect, in
Jekins it works as expected but I can never get the same Json.
Any thoughts?
Kind regards,
Ivo.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/9ab88a91-1863-492d-873b-c810ab5d1603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.