pyjen.plugins.parambuild_string module
String build parameter - plugin for parameterized build plugin
- class pyjen.plugins.parambuild_string.ParameterizedBuildStringParameter(node)[source]
Bases:
pyjen.utils.xml_plugin.XMLPlugin
String build parameter - plugin for parameterized build 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
- classmethod instantiate(name, default_value, description, trim)[source]
Factory method for creating a new string build parameter
- Parameters
name (str) – Friendly name to give this build parameter
default_value (str) – Text to assign this parameter when no user defined value is given
description (str) – Descriptive text to show on the Jenkins UI explaining the purpose of this parameter
trim (bool) – Indicates whether leading and trailing whitespace should be stripped from values entered into this field at build time
- Returns
instance of this class
- Return type
- pyjen.plugins.parambuild_string.PluginClass
alias of
pyjen.plugins.parambuild_string.ParameterizedBuildStringParameter