java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject

Jenkins JIRA | Liel Ran | 2 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 | 2 years ago | Liel Ran
    java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject
  2. 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 | 2 years ago | Liel Ran
    java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject
  3. 0

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

    Google Groups | 2 years ago | liel...@kenshoo.com (JIRA)
    java.lang.ClassCastException: com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    When you have no build parameters, uncheck 'This build is parameterized'

    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

      com.tikal.jenkins.plugins.multijob.MultiJobProject cannot be cast to hudson.model.FreeStyleProject

      at org.jfrog.hudson.release.ReleaseAction.getBuilders()
    2. org.jfrog.hudson
      ArtifactoryGradleConfigurator.setUp
      1. org.jfrog.hudson.release.ReleaseAction.getBuilders(ReleaseAction.java:592)
      2. org.jfrog.hudson.release.gradle.BaseGradleReleaseAction.getModuleRoot(BaseGradleReleaseAction.java:109)
      3. org.jfrog.hudson.release.gradle.GradleReleaseWrapper.changeProperties(GradleReleaseWrapper.java:188)
      4. org.jfrog.hudson.release.gradle.GradleReleaseWrapper.setUp(GradleReleaseWrapper.java:155)
      5. org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator.setUp(ArtifactoryGradleConfigurator.java:416)
      5 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.run
      1. hudson.model.Build$BuildExecution.doRun(Build.java:154)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      2 frames
    4. com.tikal.jenkins
      MultiJobBuild$MultiJobRunnerImpl.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134)
      1 frame
    5. Hudson
      Run.execute
      1. hudson.model.Run.execute(Run.java:1741)
      1 frame
    6. com.tikal.jenkins
      MultiJobBuild.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:374)
      2 frames