pyjen.plugins.flexiblepublish module

Primitives for operating on job publishers of type ‘Flexible Publisher’

class pyjen.plugins.flexiblepublish.ConditionalAction(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

conditional action associated with a flexible publisher

Contains 1 or more publishers to be run if a certain set of conditions is met.

classmethod instantiate(condition, actions)[source]

Factory method for creating a new instances of this class

Parameters
  • condition – Flexible publish build condition pre-configured to control this publish operation

  • actions (list) – List of 1 or more “build stage” plugins that you would like to use in the publish phase of a Jenkins job

Return type

ConditionalPublisher

publishers

List of publishers to run should the conditions associated with this action are met

Return type

list

class pyjen.plugins.flexiblepublish.FlexiblePublisher(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

Job plugin enabling conditional execution of post-build steps

https://plugins.jenkins.io/flexible-publish

actions

list of conditional actions associated with this instance

Return type

list of ConditionalAction

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

Factory method for creating a new instances of this class

Parameters

actions (list of ConditionalAction) – list of conditional actions to perform under this publisher

Return type

ParameterizedBuildTrigger

pyjen.plugins.flexiblepublish.PluginClass

alias of pyjen.plugins.flexiblepublish.FlexiblePublisher