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

artifact_regex

Gets the regular expression used to locate files to archive

Return type

str

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(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

Return type

pyjen.plugins.artifactarchiver.ArtifactArchiverPublisher

pyjen.plugins.artifactarchiver.PluginClass

alias of pyjen.plugins.artifactarchiver.ArtifactArchiverPublisher