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

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

    Details

    • 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

      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.

        Attachments

          Activity

          redsolo redsolo created issue -
          fredg Fred G made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          petehayes Peter Hayes made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 140327 ] JNJira + In-Review [ 205204 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: