On 13.12.2013, at 23:03, lfast <lfast1...@gmail.com> wrote: > I found references to an API call for submitDescription. Is there an API > call that sets the Build Display Name called submitName? How would I find out > ... without writing code that actually tries it? Is there a generaly way to > discover obscure interfaces like this?
There's some API documentation in /.../api, e.g. /job/foo/api will tell you how to trigger builds. delete the job, or enable/disable it. Another option is to read the Javadoc(e.g. at javadoc.jenkins-ci.org). If an object exposes a function you can use via HTTP, it has the 'do' prefix and arguments or a return value of StaplerRequest/StaplerResponse. Like hudson.model.Run's doSubmitDescription you found (which is used for the AJAX inline description editor), or AbstractProject's doBuild, doEnable, doDisable, and doDoDelete for the aforementioned functions. Most of these simply correspond to web pages related to the object (e.g. /job/foo/consoleText -> Run#doConsoleText(...)) and are probably rarely useful as API, or at least not that easy to use. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.