Build Labeller plugin fails to validate regex pattern

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 1.2
    • Affects Version/s: 1.1, 1.1.1, 1.1.2, 1.2
    • Component/s: Builds, Plugins
    • None

      The Build Labeller plugin attempts, but fails, to validate that the configured regex pattern is valid.

      Bamboo generates the following logging during any builds that use the invalid regex, and the build is never labelled:

      2007-06-22 16:37:22,764 INFO [BAM::Default Queue::BuildComp] [DefaultErrorHandler] Recording error: Build Labeller custom build complete action failed to run : Test - Default
      java.util.regex.PatternSyntaxException: Unknown character category {Nonsense} near index 11
      \p{Nonsense}
                 ^
      	at java.util.regex.Pattern.error(Pattern.java:1650)
      	at java.util.regex.Pattern.familyError(Pattern.java:2366)
      	at java.util.regex.Pattern.retrieveCategoryNode(Pattern.java:2357)
      	at java.util.regex.Pattern.family(Pattern.java:2335)
      	at java.util.regex.Pattern.sequence(Pattern.java:1740)
      	at java.util.regex.Pattern.expr(Pattern.java:1687)
      	at java.util.regex.Pattern.compile(Pattern.java:1397)
      	at java.util.regex.Pattern.<init>(Pattern.java:1124)
      	at java.util.regex.Pattern.compile(Pattern.java:817)
      	at com.atlassian.bamboo.plugins.labeller.BuildLabeller.run(BuildLabeller.java:69)
      	at com.atlassian.bamboo.event.BuildCompleteNotifier.performCustomBuildCompleteAction(BuildCompleteNotifier.java:117)
      	at com.atlassian.bamboo.event.BuildCompleteNotifier.doTask(BuildCompleteNotifier.java:78)
      	at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:37)
      	at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:35)
      	at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      	at java.lang.Thread.run(Thread.java:595)
      

              Assignee:
              Adrian Hempel [Atlassian]
              Reporter:
              Adrian Hempel [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified