java.lang.ClassCastException: hudson.model.FreeStyleProject cannot be cast to org.jenkinsci.plugins.jobgenerator.JobGenerator

Jenkins JIRA | Walter Kacynski | 4 years ago
  1. 0

    when trying to use the release management of Artifactory plugin the build failed with this error: [RELEASE] Release build triggered > git config --get remote.origin.url # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f master FATAL: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject at org.jfrog.hudson.release.ReleaseAction.getBuilders(ReleaseAction.java:592) at org.jfrog.hudson.release.gradle.BaseGradleReleaseAction.getModuleRoot(BaseGradleReleaseAction.java:109) at org.jfrog.hudson.release.gradle.GradleReleaseWrapper.changeProperties(GradleReleaseWrapper.java:188) at org.jfrog.hudson.release.gradle.GradleReleaseWrapper.setUp(GradleReleaseWrapper.java:155) at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator.setUp(ArtifactoryGradleConfigurator.java:416) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134) at hudson.model.Run.execute(Run.java:1741) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)

    Jenkins JIRA | 1 year ago | Liel Ran
    java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    when trying to use the release management of Artifactory plugin the build failed with this error: [RELEASE] Release build triggered > git config --get remote.origin.url # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f master FATAL: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject at org.jfrog.hudson.release.ReleaseAction.getBuilders(ReleaseAction.java:592) at org.jfrog.hudson.release.gradle.BaseGradleReleaseAction.getModuleRoot(BaseGradleReleaseAction.java:109) at org.jfrog.hudson.release.gradle.GradleReleaseWrapper.changeProperties(GradleReleaseWrapper.java:188) at org.jfrog.hudson.release.gradle.GradleReleaseWrapper.setUp(GradleReleaseWrapper.java:155) at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator.setUp(ArtifactoryGradleConfigurator.java:416) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134) at hudson.model.Run.execute(Run.java:1741) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)

    Jenkins JIRA | 1 year ago | Liel Ran
    java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject
  4. 0

    [JIRA] [artifactory-plugin] (JENKINS-29570) Artifactory Release Staging is not working on MultiJob project

    Google Groups | 1 year ago | liel...@kenshoo.com (JIRA)
    java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      hudson.model.FreeStyleProject cannot be cast to org.jenkinsci.plugins.jobgenerator.JobGenerator

      at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.cleanUp()
    2. org.jenkinsci.plugins
      GeneratorRun$GeneratorImpl.cleanUp
      1. org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.cleanUp(GeneratorRun.java:427)
      1 frame
    3. Hudson
      Run.execute
      1. hudson.model.Run.execute(Run.java:1620)
      1 frame
    4. org.jenkinsci.plugins
      GeneratorRun.run
      1. org.jenkinsci.plugins.jobgenerator.GeneratorRun.run(GeneratorRun.java:206)
      1 frame
    5. Hudson
      OneOffExecutor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:237)
      3. hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
      3 frames