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

SemanticVersioning throws exception with Free Style Build

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

      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
      

        Attachments

          Activity

          Hide
          brantone Brantone added a comment -

          Ditto for when using com.tikal.jenkins.plugins.multijob.MultiJobBuild.
          Seems to have hard requirement on job being Maven-type

          Show
          brantone Brantone added a comment - Ditto for when using com.tikal.jenkins.plugins.multijob.MultiJobBuild. Seems to have hard requirement on job being Maven-type

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jcustenborder Jeremy Custenborder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: