Bug 409471 - ClassCastException with Git Plugin and CloneWorkspaceSCM Plugin
Summary: ClassCastException with Git Plugin and CloneWorkspaceSCM Plugin
Status: NEW
Alias: None
Product: Hudson
Classification: Technology
Component: GIT (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-30 05:29 EDT by Fabrizio Giudici CLA
Modified: 2013-05-30 05:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabrizio Giudici CLA 2013-05-30 05:29:18 EDT
Hello.

I'm seeing this bug randomly, but frequently, happening:
 
FATAL: hudson.plugins.cloneworkspace.CloneWorkspaceSCM cannot be cast to hudson.plugins.git.GitSCM
java.lang.ClassCastException: hudson.plugins.cloneworkspace.CloneWorkspaceSCM cannot be cast to hudson.plugins.git.GitSCM
    at hudson.plugins.git.GitChangeSet.isCreateAccountBaseOnCommitterEmail(GitChangeSet.java:296)
    at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:256)
    at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:277)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:578)
    at hudson.model.Run.run(Run.java:1414)
    at hudson.matrix.MatrixBuild.run(MatrixBuild.java:164)
    at hudson.model.ResourceController.execute(ResourceController.java:81)
    at hudson.model.Executor.run(Executor.java:137)
    at hudson.model.OneOffExecutor.run(OneOffExecutor.java:60)

This job is not using Git to retrieve stuff, but the CloneWorkspaceSCM. I have a very similar configuration in another Hudson installation, where there's no Git plugin (Mercurial is used instead). It seems that the Git Plugin is erroneously involved to inspect the committer's email, and then Hudson realizes it's not the Git Plugin, but the CloneWorkspaceSCM.

It's causing me big troubles, since many jobs fail very very often.

Not tried yet 3.0.1 yet - all plugins up-to-date a couple of weeks ago.

Seems similar to 408377.

Thanks.