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

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

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • Host: Ubuntu 12.04 Server

      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.

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

          Daniel Beck added a comment -

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

          Daniel Beck added a comment - That's what you get for an invalid regular expression.

          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.

          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.

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

              Created:
              Updated:
              Resolved: