pyjen.plugins.gitscm module

SCM properties for jobs which pull sources from a Git repository

class pyjen.plugins.gitscm.GitSCM(node)[source]

Bases: pyjen.utils.xml_plugin.XMLPlugin

SCM properties for jobs which pull sources from a Git repository

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

classmethod instantiate(repository_url)[source]

Factory method for creating a new Git SCM code block

Parameters

repository_url (str) – URI of the repository to check out during the build

Returns

reference to the newly instantiated object

Return type

GitSCM

property url

the repository URL for the git config

Type

str

pyjen.plugins.gitscm.PluginClass

alias of pyjen.plugins.gitscm.GitSCM