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

PostBuildScript plugin fails with Maven2 jobs

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      I have upgraded jenkins from 1.425 to 1.428 and whenever any build is started i see this message.
      I am kind of stucked with this error and all my builds are not stopped working.

      15:21:25 FATAL: hudson.maven.MavenModuleSet cannot be cast to hudson.model.Project
      15:21:25 java.lang.ClassCastException: hudson.maven.MavenModuleSet cannot be cast to hudson.model.Project
      15:21:25 at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:29)
      15:21:25 at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
      15:21:25 at hudson.model.Run.run(Run.java:1371)
      15:21:25 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479)
      15:21:25 at hudson.model.ResourceController.execute(ResourceController.java:88)
      15:21:25 at hudson.model.Executor.run(Executor.java:230)

      Any help is appreciated.

      Thanks,
      Vishal

        Attachments

          Activity

          Hide
          kutzi kutzi added a comment -

          This seems to be a bug in the postbuildscript plugin (which ever that is) resp. the plugin doesn't support Maven2 jobs.
          Please disable the plugin and try again.

          Show
          kutzi kutzi added a comment - This seems to be a bug in the postbuildscript plugin (which ever that is) resp. the plugin doesn't support Maven2 jobs. Please disable the plugin and try again.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java
          src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScriptListener.java
          http://jenkins-ci.org/commit/postbuildscript-plugin/c4c2085a3e9d34f87af7a8331c78feb6407445cb
          Log:
          Fixed JENKINS-10889

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: pom.xml src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScriptListener.java http://jenkins-ci.org/commit/postbuildscript-plugin/c4c2085a3e9d34f87af7a8331c78feb6407445cb Log: Fixed JENKINS-10889
          Hide
          gbois Gregory Boissinot added a comment -

          I fixed it. The plugin version is now compatible with Maven job type and matrix job type

          Show
          gbois Gregory Boissinot added a comment - I fixed it. The plugin version is now compatible with Maven job type and matrix job type

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              vishalrekala Vishal Rekala
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: