pyjen.plugins.runcondition_and module

Condition for the run condition plugin that performs a logical AND operation on other build conditions

class pyjen.plugins.runcondition_and.AndCondition(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

Build condition that combines 2 or more other conditions with a logical AND operation. The associated operation using this condition will only run if all of the contained conditions result in a “true” value.

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

Return type

str

classmethod instantiate(terms)[source]

Creates a new instance of this condition

Parameters

terms (list of XMLPlugin) – List of 2 or more conditions to be combined using a logical AND operation. Each element is expected to be an instance of a PyJen plugin compatible with the Run Condition plugin.

Returns

instance of this class

Return type

AndCondition

pyjen.plugins.runcondition_and.PluginClass

alias of pyjen.plugins.runcondition_and.AndCondition