pyjen.plugins.artifactdeployer module

properties of the ‘artifact deployer’ publishing plugin

class pyjen.plugins.artifactdeployer.ArtifactDeployer(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

Interface to the Jenkins ‘artifact deployer’ publishing plugin

https://plugins.jenkins.io/artifactdeployer

Parameters

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

add_entry(new_entry)[source]

Adds a new deployer entry to this publisher

Parameters

new_entry (ArtifactDeployerEntry) – New publisher descriptor entry to be added

property entries

list of deployment options associated with this plugin

Type

list (ArtifactDeployerEntry)

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

Factory method for creating a new artifact deployer

Returns

reference to the newly created deployer

Return type

ArtifactDeployer

class pyjen.plugins.artifactdeployer.ArtifactDeployerEntry(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

a single artifacts to be deployed by an Artifact Deployer instance

Parameters

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

property includes

the path or regular expression describing files to be published

Type

str

classmethod instantiate(include_pattern, remote_path)[source]

Factory method used to instantiate instances of this class

Parameters
  • include_pattern (str) – Path or regular expression of the file(s) to be published

  • remote_path (str) – Path to remote share where files are to be published

Returns

instance of the artifact deployer entry

Return type

ArtifactDeployerEntry

property remote

the remote location where these artifacts are to be published

Type

str

pyjen.plugins.artifactdeployer.PluginClass

alias of pyjen.plugins.artifactdeployer.ArtifactDeployer