Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10139

Using "\d+\.\d+\.\d+" as the regex does not work

XMLWordPrintable

      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

      1. Create a new job with the following configuration
        1. Build is parameterized
        2. Add a string validation
          1. Name = VALUE
          2. Regex = \d+\.\d+\.\d+
          3. Error = Enter a three digit version number
        3. Save the configuration
      2. Start a new build
      3. Enter 1.2.3 into the VALUE text box
      4. 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.

            petehayes Peter Hayes
            redsolo redsolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: