I think it's failing after pull request #709 from Jesse Glick. In there the Descriptor was removed for obvious reasons. The call chain is as follows: call 1: https://github.com/jenkinsci/git-plugin/blob/git-4.0.0-beta10/src/main/java/hudson/plugins/git/GitSCM.java#L679
listener.getLogger().println("Using strategy: " + getBuildChooser().getDisplayName());
call 2: https://github.com/jenkinsci/git-plugin/blob/git-4.0.0-beta10/src/main/java/hudson/plugins/git/util/BuildChooser.java#L49
public final String getDescriptorOrDie() {
return getDescriptor().getDisplayName();
}
call 3: https://github.com/jenkinsci/git-plugin/blob/git-4.0.0-beta10/src/main/java/hudson/plugins/git/util/BuildChooser.java#L229
public BuildChooserDescriptor getDescriptor() {
return (BuildChooserDescriptor)Jenkins.getInstance().getDescriptorOrDie(getClass()); <--- FAILING HERE: getDescriptorOrDie(...)
}
One quick option to fix this could be to overwrite BuildChooser#getDisplayName (requires to make it non-final) in SpecificRevisionBuildChooser directly. I guess there are better ones but I am not so much into this code. Mark Waite and Jesse Glick what are you thoughts on this? |