Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Poll SCM not working #8

Open
bwebster opened this issue Oct 15, 2010 · 0 comments
Open

Poll SCM not working #8

bwebster opened this issue Oct 15, 2010 · 0 comments

Comments

@bwebster
Copy link

We are using the Poll SCM option to detect changes and trigger a build. We have the polling schedule set to * * * * *. However, Hudson doesn't detect any changes. Looking in the scm-polling.log file for a job shows this:

Started on Oct 15, 2010 1:00:10 PM
Using strategy: Default
[poll] Last Build : #120
[poll] Last Built Revision: Revision a61e9e1036da8561774871fc5ddadae43f68f128 (origin/master)
ERROR: Failed to record SCM polling
ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.lang.ClassCastException: hudson.util.StreamTaskListener cannot be cast to hudson.model.BuildListener
at hudson.plugins.git.util.GitUtils.getPollEnvironment(GitUtils.java:178)
at hudson.plugins.git.GitSCM.pollChanges(GitSCM.java:428)
at hudson.scm.SCM.poll(SCM.java:370)
at hudson.model.AbstractProject.poll(AbstractProject.java:1159)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:330)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:359)
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:619)

Seems like GitUtils.getPollEnvironment() tries to upcast the TaskListener to a BuildListener, with the NodeProperty.setUp() method requires.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant