You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the hudson.plugins.cloneworkspace.CloneWorkspaceSCM plugin and my builds often fail due to a ClassCastException:
java.lang.ClassCastException: hudson.plugins.cloneworkspace.CloneWorkspaceSCM cannot be cast to hudson.plugins.git.GitSCM
at hudson.plugins.git.GitChangeSet.isCreateAccountBaseOnCommitterEmail(GitChangeSet.java:296)
The following patch would fix that issue:
- if (parent != null) {
+ if (parent != null && GitSCM.class.isAssignableFrom(parent.getBuild().getProject().getScm().getClass())) {
createAccountBaseOnCommitterEmail = ((GitSCM) parent.getBuild().getProject().getScm()).
isCreateAccountBaseOnCommitterEmail();
}