Dear all,
like Chaitanya I am looking for a way to create a slave node through a
script. I have looked around the built-in API help and the web but am
still not sure how to go about this. There is some code in jenkinsapi
(
http://pypi.python.org/pypi/jenkinsapi) that posts to /doCreateItem
but I am not entirely sure I understand what the data being sent there
means. It would help if I could get a dump of a configuration but
there does not seem to be a way to get this - unlike for jobs or
users. I need to configure the advanced options of the launch method
configuration and would like to know what the field names for this
are.
Any pointers very welcome.
Best wishes,
Alex
On Jan 7, 10:59 pm, Mark Waite <
markwa...@yahoo.com> wrote:
> I'm not aware of an API to create new slave nodes. I think there was a previous discussion on the mailing list about creating slave nodes from the API and there did not seem to be a way to create new slave nodes from the API.
>
> When I run the Jenkins command line interface (CLI) from my machine, it lists the following node control APIs (no create-node command):
>
> connect-node (Reconnect to a node)
> delete-node (Deletes a node)
> disconnect-node (Disconnects from a node)
> offline-node (Stop using a node for performing builds)
> online-node (Resume using a node for performing builds)
> wait-node-offline (Wait for a node to become offline)
> wait-node-online (Wait for a node to become online)
>
> You can read more about using the command line interface on the Jenkins Wiki.
>
> There is lots of information about the slave nodes available from the API URL if you're willing to use XML, JSON, or Python. Try appending "/api/" to any of the web page URL's and it will give you a very nice page introducing you to those APIs. Clickable links within that page will let you see the various outputs in your web browser.
>
> For example, I can see lots of node information onhttp://mwaite1:8080/computer/api/xml?depth=1 . That includes online / offline status, various health attributes (number of executors, temporary space, disc space, etc.), and more.
>
> Mark Waite
>
>
>
>
>
>
>
> >________________________________
> > From: Chaitanya Jandhyala <
chaitanya.jandhy...@gmail.com>