pyjen.plugins.runcondition_not module

Condition for the run condition plugin that inverts the logical result of another build condition.

class pyjen.plugins.runcondition_not.NotCondition(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

Condition for the run condition plugin that inverts the logical result of another build condition.

https://plugins.jenkins.io/run-condition

Parameters

node (xml.etree.ElementTree.Element) – XML node with the decoded XML data associated with a plugin

static get_friendly_name()[source]
Returns

The user friendly display name for this condition. This typically reflects the text found in the Jenkins UI for the condition

Return type

str

static get_jenkins_plugin_name()[source]

str: the name of the Jenkins plugin associated with this PyJen plugin

This static method is used by the PyJen plugin API to associate this class with a specific Jenkins plugin, as it is encoded in the config.xml

classmethod instantiate(condition)[source]

Factory method that constructs an instance of this class

Parameters

condition (XMLPlugin) – Any PyJen plugin compatible with the Run Condition plugin

Returns

instance of this class

Return type

NotCondition

pyjen.plugins.runcondition_not.PluginClass

alias of pyjen.plugins.runcondition_not.NotCondition