feature request: support adding node with xml file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Jenkins |
New
|
Undecided
|
Unassigned |
Bug Description
This is a feature request. It would be nice if python-jenkins create_node() method could read an xml config containing the node info and create the node from the xml data. That's how create_job() method works so would be great if there was an equivalent for create_node()
Example:
NODE_CONFIG_XML = '''<?xml version="1.0" encoding="UTF-8"?>
<slave>
<name>
<description>This is my test slave</description>
<remoteFS>
<numExecutors
<mode>
<retentionStr
<launcher class="
<host>
<port>22</port>
<credential
</launcher>
<label>precide py27</label>
<nodeProperties/>
<userId>
</slave>'''
method invocation:
create_