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

add_entry(new_entry)[source]

Adds a new deployer entry to this publisher

Parameters

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

entries

Gets the list of deployment options associated with this plugin

Returns

list of configuration options for each set of artifacts managed by this instance

Return type

list of ArtifactDeployerEntry objects

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

Factory method for creating a new artifact deployer :rtype: pyjen.plugins.artifactdeployer.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

includes

Gets the path or regular expression describing files to be published

Return 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

remote

Gets the remote location where these artifacts are to be published

Return type

str

pyjen.plugins.artifactdeployer.PluginClass

alias of pyjen.plugins.artifactdeployer.ArtifactDeployer