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

Perforce: With downstream-ext, polling has to wait for project with a build in progress

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      (Description copied from JENKINS-5406. Comments there indicate that maybe the Perforce plugin is at fault here in not allowing the polling to happen while a build is in progress.)

      Just ran into a problem with downstream-ext 1.3, Hudson 1.342, Perforce plugin 1.0.17.

      I have a build X which I have set to trigger builds A, B, and C on success, but only if there are SCM changes. A, B, and C is the order that the downstream jobs are tested for SCM changes when I look at the logs.

      The problem is that when build B is already running, the polling appears to hang for job B. After many minutes, I aborted the job, which generated in the logs:

      FATAL: SCM polling aborted
      java.lang.InterruptedException
      	at java.lang.Object.wait(Native Method)
      	at java.lang.Object.wait(Object.java:485)
      	at hudson.slaves.WorkspaceList.acquire(WorkspaceList.java:173)
      	at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:1062)
      	at hudson.plugins.downstream_ext.DownstreamDependency.shouldTriggerBuild(DownstreamDependency.java:38)
      	at hudson.tasks.BuildTrigger.execute(BuildTrigger.java:187)
      	at hudson.model.Build$RunnerImpl.cleanUp(Build.java:160)
      	at hudson.model.Run.run(Run.java:1240)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:122)
      Job-B has no SCM changes. Triggering skipped.
      

      The polling for C then proceeded without incident. This happened on two consecutive builds, so that's enough for me to not call it a random failure.

      Build B is a very long-running build... I haven't yet run into the situation where A or C were running at the time of the completion of X.

        Attachments

          Activity

          Hide
          rpetti Rob Petti added a comment -

          Yeah, the perforce plugin is set up so that it cannot poll while it's running a build. I can change this, but I don't know what kind of effect it will have if say, polling and building start simultaneously. I think it'll be fine for most cases; perforce is usually pretty intelligent when it comes to concurrency.

          Show
          rpetti Rob Petti added a comment - Yeah, the perforce plugin is set up so that it cannot poll while it's running a build. I can change this, but I don't know what kind of effect it will have if say, polling and building start simultaneously. I think it'll be fine for most cases; perforce is usually pretty intelligent when it comes to concurrency.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : rpetti
          Path:
          trunk/hudson/plugins/perforce/src/main/java/hudson/plugins/perforce/PerforceSCM.java
          http://jenkins-ci.org/commit/27166
          Log:
          [FIXED JENKINS-5545] disabled requiresWorkspaceForPolling to allow polling to run while a build is running

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : rpetti Path: trunk/hudson/plugins/perforce/src/main/java/hudson/plugins/perforce/PerforceSCM.java http://jenkins-ci.org/commit/27166 Log: [FIXED JENKINS-5545] disabled requiresWorkspaceForPolling to allow polling to run while a build is running

            People

            • Assignee:
              Unassigned
              Reporter:
              oeuftete oeuftete
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: