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

Jenkins JIRA | Vishal Rekala | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

    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