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

Creating a multijob plugin to as a template cause error

    Details

    • Similar Issues:

      Description

      If I create a multijob and then try to use it as a template I get the following error:

      FATAL: hudson.model.FreeStyleBuild cannot be cast to com.tikal.jenkins.plugins.multijob.MultiJobBuild
      java.lang.ClassCastException: hudson.model.FreeStyleBuild cannot be cast to com.tikal.jenkins.plugins.multijob.MultiJobBuild
      at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:64)
      at hudson.plugins.templateproject.ProxyBuilder.perform(ProxyBuilder.java:83)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      at hudson.model.Run.execute(Run.java:1502)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)

      BTW this a great plugin. It has greatly reduced the effort around our use of Jenkins. Thank you!

        Attachments

          Activity

          Hide
          yorammi Yoram Michaeli added a comment -

          This is not clear since templates plugin is a jenkins-enterprise plugin, so if that what this issue is referring to, we cannot support it. If 'use it as a template' means only copy of an existing multijob job as a new job it worked for me just fine

          Show
          yorammi Yoram Michaeli added a comment - This is not clear since templates plugin is a jenkins-enterprise plugin, so if that what this issue is referring to, we cannot support it. If 'use it as a template' means only copy of an existing multijob job as a new job it worked for me just fine
          Hide
          brantone Brantone added a comment -

          Much has changed in a couple years, can you confirm if still reproducible?

          Show
          brantone Brantone added a comment - Much has changed in a couple years, can you confirm if still reproducible?
          Hide
          yorammi Yoram Michaeli added a comment -

          Closing issue as part of tikal-multijob-plugin issues cleanup.
          If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

          Show
          yorammi Yoram Michaeli added a comment - Closing issue as part of tikal-multijob-plugin issues cleanup. If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              brianaker Brian Aker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: