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

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

Return type

pyjen.plugins.gitscm.GitSCM

url

Gets the repository URL for the git config

pyjen.plugins.gitscm.PluginClass

alias of pyjen.plugins.gitscm.GitSCM