Closed krisstern closed 1 year ago
@krisstern I suspect this change broke all matrix builds on our instance. It was fine before upgrading the plugin to 1.27.
FATAL: class hudson.matrix.MatrixProject cannot be cast to class hudson.model.Project (hudson.matrix.MatrixProject is in unnamed module of loader jenkins.util.URLClassLoader2 @57b866df; hudson.model.Project is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @69b2283a)
java.lang.ClassCastException: class hudson.matrix.MatrixProject cannot be cast to class hudson.model.Project (hudson.matrix.MatrixProject is in unnamed module of loader jenkins.util.URLClassLoader2 @57b866df; hudson.model.Project is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @69b2283a)
at hudson.plugins.build_timeout.global.GlobalTimeOutConfiguration.timeOutFor(GlobalTimeOutConfiguration.java:97)
at hudson.plugins.build_timeout.global.GlobalTimeOutRunListener.setUpEnvironment(GlobalTimeOutRunListener.java:41)
at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:617)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
at hudson.model.Run.execute(Run.java:1900)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
Yeah @Pesa Our tests didn't catch this. Let me fix this now. Thanks for getting back to me.
Just fixed the broken matrix build.
Thanks, 1.28 works.
You are welcome @Pesa! Glad it works now.
Description
Third attempt to attempt to resolve #100. Got rid of the
ClassCastException
now that thetimeOutFor()
for the global timeout is overloaded for both theAbstractProject
andAbstractBuild
classes.Checklist