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

Polling fails in GIT plugin 1.1.1

    XMLWordPrintable

Details

    Description

      Since upgrading to the Git plugin version 1.1.1, polling no longer works. The following error is displayed in the polling log for all projects using the git scm plugin:

      Started on Nov 8, 2010 12:45:58 PM
      Using strategy: Default
      [poll] Last Build : #1014
      [poll] Last Built Revision: Revision 694552cd898421418e8b06235dfb00b676a8ed7a (origin/master)
      ERROR: Failed to record SCM polling
      java.lang.ClassCastException: hudson.util.StreamTaskListener cannot be cast to hudson.model.BuildListener
      at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:170)
      at hudson.plugins.git.GitSCM.pollChanges(GitSCM.java:428)
      at hudson.scm.SCM.poll(SCM.java:374)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1232)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:417)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:446)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:680)

      Everything works as expected when downgrading back to version 1.1 of the plugin

      Attachments

        Activity

          abayer Andrew Bayer added a comment -

          Yup - I think I fixed it earlier today with http://ci.hudson-labs.org/job/plugins_hudson-git-plugin/35/org.jvnet.hudson.plugins$git/ - if you could test/verify, I'd appreciate it.

          abayer Andrew Bayer added a comment - Yup - I think I fixed it earlier today with http://ci.hudson-labs.org/job/plugins_hudson-git-plugin/35/org.jvnet.hudson.plugins$git/ - if you could test/verify, I'd appreciate it.
          glimberg Grant Limberg added a comment -

          The version from the link you sent seems to be working fine. Thanks.

          glimberg Grant Limberg added a comment - The version from the link you sent seems to be working fine. Thanks.
          abayer Andrew Bayer added a comment -

          Fantastic! Thanks for verifying!

          abayer Andrew Bayer added a comment - Fantastic! Thanks for verifying!

          People

            abayer Andrew Bayer
            glimberg Grant Limberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: