pyjen.plugins.buildtriggerpublisher module

Interface to the Jenkins ‘build trigger’ publishing plugin

class pyjen.plugins.buildtriggerpublisher.BuildTriggerPublisher(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

Interface to the Jenkins ‘build trigger’ publishing plugin

This plugin is a default, built-in plugin which is part of the Jenkins core

Parameters

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

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(project_names)[source]

Factory method for creating a new build trigger

The default trigger will run when the parent job is successful

Parameters

project_names (list of str) – List of 1 or more names of jobs to trigger

Returns

reference to the newly instantiated object

Return type

BuildTriggerPublisher

property job_names

names of 0 or more downstream jobs managed by this config

Type

list (str)

pyjen.plugins.buildtriggerpublisher.PluginClass

alias of pyjen.plugins.buildtriggerpublisher.BuildTriggerPublisher