I've got an extension to NodeProperty that contains data I'd like to expose
on the node's REST API page, and I'm not sure how to go about doing it. It
appears properly for the config.xml endpoint output, though.
My class:
58 @ExportedBean
> 59 public class FancyNewProperty extends NodeProperty <Slave> {
> ...
> 765 @Exported(visibility=999)
> 766 private HashMap<String, Object> policies = new HashMap<String,
> Object>();
> ...
> 1181 public Api getApi() { return new Api(this); }
> 1182
> 1183 @Exported
> 1184 public String getInfo() {
> 1185 return "JB INFO";
> 1186 }
However neither policies nor info show up in the JSON API output
at http://myjenkins/computer/jb_test1/api/json.
Am I completely misunderstanding
this
https://wiki.jenkins-ci.org/display/JENKINS/Exposing+data+to+the+remote+API
?
--
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/dce1b375-a654-4b25-a941-6c40cbf61eaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.