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.
i have the same form validation problem but i resolve this by using \\d+\\.\\d+\\.
d+.
After that i have another problem, the plugin abort my build and show this error "ERROR: Invalid value for parameter [SOFTWARE_VERSION] specified: 2.11.0"
i've no idea why it is an invalid value when it can pass the form validation.