pyjen.utils.jobxml module

Abstractions for managing the raw config.xml for a Jenkins job

class pyjen.utils.jobxml.JobXML(api)[source]

Bases: object

Wrapper around the config.xml for a Jenkins job

The source xml can be loaded from nearly any URL by appending “/config.xml” to it, as in “http://server/jobs/job1/config.xml

Parameters

api – Rest API for the Jenkins XML configuration managed by this object

add_property(prop)[source]

Adds a new job property to the configuration

Parameters

prop – PyJen plugin associated with the job property to add

plugin_name

Gets the name of the Jenkins plugin associated with this view

Return type

str

properties

Gets a list of 0 or more Jenkins properties associated with this job

Returns

a list of customizable properties associated with this job

Return type

list of property plugins supported by this job

update()[source]

Posts all changes made to the object back to Jenkins

xml

Raw XML in plain-text format

Return type

str