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

static get_jenkins_plugin_name()[source]

Gets 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(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) – List of 1 or more names of jobs to trigger

Return type

pyjen.plugins.buildtriggerpublisher.BuildTriggerPublisher

job_names

Gets the names of 0 or more downstream jobs managed by this config

Return type

list of str

pyjen.plugins.buildtriggerpublisher.PluginClass

alias of pyjen.plugins.buildtriggerpublisher.BuildTriggerPublisher