pyjen.utils.viewxml module

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

class pyjen.utils.viewxml.ViewXML(xml)[source]

Bases: object

Wrapper around the config.xml for a Jenkins view

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:xml (str) – Raw XML character string extracted from a Jenkins job.
XML[source]

Extracts the processed XML for export to a Jenkins job

Returns:Raw XML containing any and all customizations applied in previous operations against this object. This character string can be imported into Jenkins to configure a job.
Return type:str
rename(new_name)[source]

Changes the name of the view

Parameters:new_name (str) – The new name for the view