{jenkins-plugin-info:pluginId=validating-string-parameter}

The validating string parameter plugin contributes a new parameter type to Jenkins that supports regular expression validation of the user's entered parameter.

Usage

This plugin is used wherever build parameter selection is available, most commonly in the job configuration page by enabling parameterized builds (this parameter type will also be available as release parameters using the release plugin).

Configure the parameter by entering a name, regular expression to validate the entered value and optionally a default value, an error message shown when the user entered value fails the regular expression check and a parameter description.

 
When a build is requested, the user will be prompted with the parameters to enter.  Users enter the parameter as normal, but will now be prompted with an error message if the entered value does not meet the regular expression.

Once the entered value meets the configured regular expression, the error message is no longer displayed.

Version History

Version 2.4 (TBD)

Version 2.3 (04-Feb-2015)

Version 2.2 (13-Sep-2011)

Version 2.1 (27-Feb-2011)

Version 2.0 (19-Feb-2011)

Version 1.4 (13-Oct-2010)

Version 1.3 (22-May-2010)

Version 1.2 (29-Aug-2009)

Version 1.1 (28-Aug-2009)

Version 1.0 (24-Aug-2009)