Remote access API

compared with
Current by Alan Harder
on Dec 03, 2010 09:29.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View page history
# create/copy jobs
h2. sSubmitting jobs

For a job with no parameters, you need merely go an HTTP GET on
h2. Sample code
[A simple client is available|http://download.java.net/maven/2/org/jvnet/hudson/client-demo/] to demonstrate how you can invoke the XML from Java ([Java source|https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/extras/client-demo/src/main/java/org/jvnet/hudson/client_demo/Main.java?view=markup]) source|http://java.net/projects/hudson/sources/svn/content/trunk/hudson/extras/client-demo/src/main/java/org/jvnet/hudson/client_demo/Main.java])

h2. XPath selection
depth value.
See {{.../api/}} on your Hudson server for more up-to-date details.

h2. Detecting Hudson version
To check the version of Hudson, load the top page and check for the "X-Hudson" response header. This contains the version number of Hudson, like "1.171" "1.358" This is also a good way to check if an URL is a Hudson URL.

h2. Discovering Hudson on the network
{noformat}
<hudson>
<version>1.2380</version> <!-- version of Hudson -->
<url>http://somwhere/hudson/</url> <!-- HTTP URL. Not available if not configured -->
<slave-port>12345</slave-port> <!-- if TCP slave listener port is configured, its number -->