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 (JenkinsAPI) – Rest API for the Jenkins XML configuration managed by this object

property plugin_name

the name of the Jenkins plugin associated with XML definition

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

property xml

Raw XML representation describing the configuration of this plugin, in plain-text format

Type

str