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

"Poll Exclude File(s)" option doesn't handle build parameters

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Environment:
      Perforce plugin 1.36, Jenkins 1.439
    • Similar Issues:

      Description

      Hi there,

      It appears the "Poll Exclude File(s)" section of the Perforce plugin doesn't support build parameters. In my Perforce view configuration I'm quite happily using something like:

      //mydepot/$

      {branch}/Engine/Include/Macros.h "//workspace/Engine/Include/Macros.h"

      where "branch" is a string parameter specified under the "This build is parameterized" option.

      However, if I enter the following in "Poll Exclude File(s)":

      //mydepot/${branch}

      /Engine/Tools/Source/StripELF/Readme_e.txt

      I get:

      ERROR: Failed to record SCM polling
      java.util.regex.PatternSyntaxException: Illegal repetition near index 8
      //mydepot/${branch}/Engine/Tools/Source/StripELF/Readme_e.txt
                ^
      	at java.util.regex.Pattern.error(Unknown Source)
      	at java.util.regex.Pattern.closure(Unknown Source)
      	at java.util.regex.Pattern.sequence(Unknown Source)
      	at java.util.regex.Pattern.expr(Unknown Source)
      	at java.util.regex.Pattern.compile(Unknown Source)
      	at java.util.regex.Pattern.<init>(Unknown Source)
      	at java.util.regex.Pattern.compile(Unknown Source)
      	at hudson.plugins.perforce.PerforceSCM.doesFilenameMatchP4Pattern(PerforceSCM.java:1112)
      	at hudson.plugins.perforce.PerforceSCM.doesFilenameMatchAnyP4Pattern(PerforceSCM.java:1100)
      	at hudson.plugins.perforce.PerforceSCM.isChangelistExcluded(PerforceSCM.java:1079)
      	at hudson.plugins.perforce.PerforceSCM.getCurrentDepotRevisionState(PerforceSCM.java:1020)
      	at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:900)
      	at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      	at hudson.scm.SCM.poll(SCM.java:373)
      	at hudson.model.AbstractProject.poll(AbstractProject.java:1326)
      	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(Unknown Source)
      	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      

      Can this be fixed please?

      Regards,
      Tom.

        Attachments

          Activity

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              tfields Thomas Fields
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: