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

Jenkins JIRA | Brian Aker | 4 years ago
  1. 0
    When you have no build parameters, uncheck 'This build is parameterized'
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I added a new freestyle build with the first step using the plugin. It's trying to cast to AbstractMavenBuild and is throwing an exception. {code:java} ERROR: Build step failed with exception java.lang.ClassCastException: hudson.model.FreeStyleBuild cannot be cast to hudson.maven.AbstractMavenBuild at org.jenkinsci.plugins.SemanticVersioning.parsing.PomParser.extractAppVersion(PomParser.java:67) at org.jenkinsci.plugins.SemanticVersioning.SemanticVersioningProcesser.getAppVersion(SemanticVersioningProcesser.java:89) at org.jenkinsci.plugins.SemanticVersioning.SemanticVersioningProcesser.determineSemanticVersion(SemanticVersioningProcesser.java:57) at org.jenkinsci.plugins.SemanticVersioning.SemanticVersioningBuilder.perform(SemanticVersioningBuilder.java:106) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Build step 'Determine Semantic Version' marked build as failure {code}

    Jenkins JIRA | 1 year ago | Jeremy Custenborder
    java.lang.ClassCastException: hudson.model.FreeStyleBuild cannot be cast to hudson.maven.AbstractMavenBuild
  4. 0

    I added a new freestyle build with the first step using the plugin. It's trying to cast to AbstractMavenBuild and is throwing an exception. {code:java} ERROR: Build step failed with exception java.lang.ClassCastException: hudson.model.FreeStyleBuild cannot be cast to hudson.maven.AbstractMavenBuild at org.jenkinsci.plugins.SemanticVersioning.parsing.PomParser.extractAppVersion(PomParser.java:67) at org.jenkinsci.plugins.SemanticVersioning.SemanticVersioningProcesser.getAppVersion(SemanticVersioningProcesser.java:89) at org.jenkinsci.plugins.SemanticVersioning.SemanticVersioningProcesser.determineSemanticVersion(SemanticVersioningProcesser.java:57) at org.jenkinsci.plugins.SemanticVersioning.SemanticVersioningBuilder.perform(SemanticVersioningBuilder.java:106) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Build step 'Determine Semantic Version' marked build as failure {code}

    Jenkins JIRA | 1 year ago | Jeremy Custenborder
    java.lang.ClassCastException: hudson.model.FreeStyleBuild cannot be cast to hudson.maven.AbstractMavenBuild

    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.FreeStyleBuild cannot be cast to com.tikal.jenkins.plugins.multijob.MultiJobBuild

      at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform()
    2. com.tikal.jenkins
      MultiJobBuilder.perform
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:64)
      1 frame
    3. hudson.plugins.templateproject
      ProxyBuilder.perform
      1. hudson.plugins.templateproject.ProxyBuilder.perform(ProxyBuilder.java:83)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      3. hudson.model.Build$BuildExecution.build(Build.java:199)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      6. hudson.model.Run.execute(Run.java:1502)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames