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

Failed SCM poll does not notify admin/anyone of failure.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • CentOS 6.0 Master OS x64 x86_64, Jenkins 1.439

      If a particular line in the "Excluded Regions" of is a bad regex, polling fails with the following. However, it does not send an email, or notify the admin in any way. Would it be possible to either send an email (or otherwise notify), or cause the build to fail so the admin can check on it?

      Thanks!

      ERROR: Failed to record SCM polling
      java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3
      .*\CVS
         ^
      	at java.util.regex.Pattern.error(Pattern.java:1730)
      	at java.util.regex.Pattern.escape(Pattern.java:2194)
      	at java.util.regex.Pattern.atom(Pattern.java:1969)
      	at java.util.regex.Pattern.sequence(Pattern.java:1851)
      	at java.util.regex.Pattern.expr(Pattern.java:1769)
      	at java.util.regex.Pattern.compile(Pattern.java:1477)
      	at java.util.regex.Pattern.<init>(Pattern.java:1150)
      	at java.util.regex.Pattern.compile(Pattern.java:840)
      	at hudson.scm.CVSSCM.getExcludedRegionsPatterns(CVSSCM.java:316)
      	at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:205)
      	at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      	at hudson.scm.SCM.poll(SCM.java:373)
      	at hudson.model.AbstractProject.poll(AbstractProject.java:1313)
      	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
      	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
      	at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      	at java.lang.Thread.run(Thread.java:636)
      

            Unassigned Unassigned
            khushsk Sagar Khushalani
            Votes:
            10 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: