java.lang.ClassCastException: hudson.maven.MavenModuleSet cannot be cast to hudson.model.Project

Jenkins JIRA | Vishal Rekala | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. java.lang.ClassCastException

      hudson.maven.MavenModuleSet cannot be cast to hudson.model.Project

      at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted()
    2. org.jenkinsci.plugins
      PostBuildScriptListener.onStarted
      1. org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:29)
      1 frame
    3. Hudson
      Run.run
      1. hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
      2. hudson.model.Run.run(Run.java:1371)
      2 frames
    4. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:230)
      2 frames