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 (View Workflow)
    • 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

          tfields Thomas Fields created issue -
          tfields Thomas Fields made changes -
          Field Original Value New Value
          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.
          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:

          {code}
          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)
          {code}

          Can this be fixed please?

          Regards,
          Tom.
          rpetti Rob Petti made changes -
          Assignee Rob Petti [ rpetti ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          jedavis Jason Davis made changes -
          Environment Perforce plugin 1.36, Jenkins 1.439 Jenkins: 1.511, Perforce Server Version: 2012.1, Java 1.7.0_17, Perforce Plugin: 1.3.21, Windows Server 2008 R2
          jedavis Jason Davis made changes -
          Environment Jenkins: 1.511, Perforce Server Version: 2012.1, Java 1.7.0_17, Perforce Plugin: 1.3.21, Windows Server 2008 R2
          Perforce plugin 1.36, Jenkins 1.439
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 142524 ] JNJira + In-Review [ 190149 ]

            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: