pyjen.plugins.subversion module

Module defining the interfaces for interacting with Subversion properties associated with a pyjen.job.Job

class pyjen.plugins.subversion.ModuleLocation(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

Interface to SCM module declarations in a Subversion property of a job

Parameters

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

property depth_option

the current SVN ‘depth’ options associated with this module

Type

str

disable_ignore_externals()[source]

Disables the ‘ignore externals’ option on this SCM module

enable_ignore_externals()[source]

Enables the ‘ignore externals’ option on this SCM module

property ignore_externals

True if ignore externals is enabled, otherwise False

Type

bool

property local_dir

folder where the source code for this module is checked out to

Type

str

property node

the XML node associated with this plugin

Type

xml.etree.ElementTree.Element

property url

SVN URL where the source code for this module can be found

Type

str

pyjen.plugins.subversion.PluginClass

alias of pyjen.plugins.subversion.Subversion

class pyjen.plugins.subversion.Subversion(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

Subversion SCM job plugin

https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin

Parameters

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

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

property included_regions

patterns of the regions of the SVN repo to include in SCM operations

Type

list (str)

property locations

set of 0 or more ModuleLocation objects describing the SVN parameters for this module.

Type

list (ModuleLocation)