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

Exception caught evaluating condition: [java.util.regex.PatternSyntaxException: Dangling meta character '*'

    Details

    • Similar Issues:

      Description

      During a build, we're seeing this in the console output, but it doesn't appear to impact the actual execution. We get what we wanted:

      Build step 'Conditional steps (multiple)' changed build result to SUCCESS
      Regular expression run condition: Expression=[*.Windows.*true], Label=[Windows,Linuxfalse]
      Exception caught evaluating condition: [java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
      *.Windows.*true
      ^], action = [Don't run]

      We get this consistently. We have a checkbox to run tests when it is checked. We only see the above when it is not checked.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          That's what you get for an invalid regular expression.

          Show
          danielbeck Daniel Beck added a comment - That's what you get for an invalid regular expression.
          Hide
          kerrhome Shannon Kerr added a comment -

          I didn't see it until I started to ask you why it was invalid. Should be .* instead of *.

          Thanks Daniel. Always helpful.

          Show
          kerrhome Shannon Kerr added a comment - I didn't see it until I started to ask you why it was invalid. Should be .* instead of *. Thanks Daniel. Always helpful.

            People

            • Assignee:
              Unassigned
              Reporter:
              kerrhome Shannon Kerr
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: