Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5146

template-project plugin is incompartibme with matrix project

    Details

    • Similar Issues:

      Description

      Template project builder does not work within a matrix project. Build of such project fails with an exception:

      FATAL: hudson.matrix.MatrixProject cannot be cast to hudson.model.Project
      java.lang.ClassCastException: hudson.matrix.MatrixProject cannot be cast to hudson.model.Project
      at hudson.plugins.templateproject.ProxyBuilder.getProject(ProxyBuilder.java:38)
      at hudson.plugins.templateproject.ProxyBuilder.prebuild(ProxyBuilder.java:98)
      at hudson.model.AbstractBuild$AbstractRunner.preBuild(AbstractBuild.java:596)
      at hudson.model.AbstractBuild$AbstractRunner.preBuild(AbstractBuild.java:591)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:114)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      at hudson.model.Run.run(Run.java:1179)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:130)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/template-project/src/main/java/hudson/plugins/templateproject/ProxyBuilder.java
          trunk/hudson/plugins/template-project/src/main/java/hudson/plugins/templateproject/ProxySCM.java
          http://jenkins-ci.org/commit/27392
          Log:
          [template-project] [FIXED JENKINS-5146] support getting Builders from a matrix project.
          don't b0rk on maven project (validator warns.. if still selected, won't get exception
          just runs no builders).
          Also got form field validators active again.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/template-project/src/main/java/hudson/plugins/templateproject/ProxyBuilder.java trunk/hudson/plugins/template-project/src/main/java/hudson/plugins/templateproject/ProxySCM.java http://jenkins-ci.org/commit/27392 Log: [template-project] [FIXED JENKINS-5146] support getting Builders from a matrix project. don't b0rk on maven project (validator warns.. if still selected, won't get exception just runs no builders). Also got form field validators active again.

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              kirill_evstigneev Kirill Evstigneev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: