Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: validating-string-parameter-plugin
-
Labels:None
-
Environment:Linux
Jenkins 1.418
plugin 2.1
-
Similar Issues:
Description
Ive realized that one of my previous mentioned problems with the plugin is that I used a regex that looks liks this \d+\.\d+\.\d+. Im using that regex to make sure that the person starting the build enters a proper version number, ie. 1.2.3
Steps to reproduce
- Create a new job with the following configuration
- Build is parameterized
- Add a string validation
- Name = VALUE
- Regex = \d+\.\d+\.\d+
- Error = Enter a three digit version number
- Save the configuration
- Start a new build
- Enter 1.2.3 into the VALUE text box
- Move away focus from text box
Expected outcome:
The Enter a three digit version number text disappears and no error is shown
Actual outcome:
The Enter a three digit version number text is shown as an error
If I use a .+ regex, then the error message disappears when I enter something into the textbox.
This issue seems to be fixed with validating-string-parameter plugin version 2.2.
Please re-open, if the problem still exists.