pyjen.utils.viewxml module

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

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

Bases: object

Wrapper around the config.xml for a Jenkins view

Loaded from the ./view/config.xml REST API endpoint for any arbitrary Jenkins view.

Parameters

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

plugin_name

Gets the name of the Jenkins plugin associated with this view

Return type

str

rename(new_name)[source]

Changes the name of the view

Parameters

new_name (str) – The new name for the view

update()[source]

Posts all changes made to the object back to Jenkins

xml

Raw XML in plain-text format

Return type

str