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

Tuple index out of range error with string contain braces

XMLWordPrintable

      I get 'tuple index out of range' when I use jenkins job builder to create a simple job contain a 'validating-string-parameter' below.

              - validating-string:
                  name: RELEASE_DATE
                  regex: '^[0-9]{4}'
                  msg: 'Bad format of the date - use: YYYY-MM-DD'
      

      Error message

      IndexError: tuple index out of range
      

      I changed regex macro to [0-9][0-9][0-9][0-9] and it didn't get error anymore

            petehayes Peter Hayes
            caohhung Hung Cao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: