java.lang.ClassCastException: hudson.matrix.MatrixProject cannot be cast to hudson.model.Project

Jenkins JIRA | Kirill Evstigneev | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. java.lang.ClassCastException

      hudson.matrix.MatrixProject cannot be cast to hudson.model.Project

      at hudson.plugins.templateproject.ProxyBuilder.getProject()
    2. hudson.plugins.templateproject
      ProxyBuilder.prebuild
      1. hudson.plugins.templateproject.ProxyBuilder.getProject(ProxyBuilder.java:38)
      2. hudson.plugins.templateproject.ProxyBuilder.prebuild(ProxyBuilder.java:98)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractRunner.preBuild(AbstractBuild.java:596)
      2. hudson.model.AbstractBuild$AbstractRunner.preBuild(AbstractBuild.java:591)
      3. hudson.model.Build$RunnerImpl.doRun(Build.java:114)
      4. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      5. hudson.model.Run.run(Run.java:1179)
      6. hudson.matrix.MatrixRun.run(MatrixRun.java:130)
      7. hudson.model.ResourceController.execute(ResourceController.java:88)
      8. hudson.model.Executor.run(Executor.java:122)
      8 frames