pyjen.plugins.artifactarchiver module

Interface to the Jenkins ‘archive artifacts’ publishing plugin

class pyjen.plugins.artifactarchiver.ArtifactArchiverPublisher(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

Interface to the Jenkins ‘archive artifacts’ 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

property artifact_regex

the regular expression used to locate files to archive

Type

str

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

Factory method for creating a new artifact archiver

Parameters

file_pattern (str) – regular expression matching files to be archived at the end of the build

Returns

Reference to the newly created publisher

Return type

ArtifactArchiverPublisher

pyjen.plugins.artifactarchiver.PluginClass

alias of pyjen.plugins.artifactarchiver.ArtifactArchiverPublisher