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

ClassCastException with Maven Project

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If a phase contains a maven project job, the multijob plugin fails with a CalssCastException.

      java.lang.ClassCastException: hudson.maven.MavenModuleSetBuild cannot be cast to hudson.model.Build
      	at com.tikal.jenkins.plugins.multijob.MultiJobBuilder$SubJobWorker.run(MultiJobBuilder.java:199)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:724)
      Feb 04, 2014 6:26:59 PM hudson.model.Run execute
      

        Attachments

          Activity

          Show
          domi Dominik Bartholdi added a comment - PullRequest placed: https://github.com/jenkinsci/tikal-multijob-plugin/pull/43
          Hide
          liya Liya Katz added a comment -

          Please add your installation details + Jenkins version + Multijob plugin version

          Show
          liya Liya Katz added a comment - Please add your installation details + Jenkins version + Multijob plugin version
          Hide
          domi Dominik Bartholdi added a comment -

          This happens with all versions of jenkins and with the newest version of the plugin and also with the current code in the master branch.
          Just create a new job with type "maven 2/3" and add it to a phase. Configuring this setup is not an issue, but when you run it, you'll see that the multijob plugin will not be able to determine the status of the job. Instead, it will just start the next job and not wait until the maven job is finished. The status "ball" indicating the jobs status on the multijob status page will stay gray.

          In fact the same thing happens when you add a matrix build job to a phase.

          The fix is very easy, please see the PullRequest I have placed.

          Show
          domi Dominik Bartholdi added a comment - This happens with all versions of jenkins and with the newest version of the plugin and also with the current code in the master branch. Just create a new job with type "maven 2/3" and add it to a phase. Configuring this setup is not an issue, but when you run it, you'll see that the multijob plugin will not be able to determine the status of the job. Instead, it will just start the next job and not wait until the maven job is finished. The status "ball" indicating the jobs status on the multijob status page will stay gray. In fact the same thing happens when you add a matrix build job to a phase. The fix is very easy, please see the PullRequest I have placed.
          Hide
          domi Dominik Bartholdi added a comment -

          Hi Liya,
          an chance we get this resolved/merged soon? This is an absolute killer for us...
          If you don't have the time for a release, please let me know, I could cut one for you.
          tx domi

          Show
          domi Dominik Bartholdi added a comment - Hi Liya, an chance we get this resolved/merged soon? This is an absolute killer for us... If you don't have the time for a release, please let me know, I could cut one for you. tx domi
          Hide
          domi Dominik Bartholdi added a comment -
          Show
          domi Dominik Bartholdi added a comment - PR https://github.com/jenkinsci/tikal-multijob-plugin/pull/42/ has the the same fix...
          Hide
          alex_nick Alex Nickolaevsky added a comment -

          The issue resolved and merged. Will be released in next version.

          Show
          alex_nick Alex Nickolaevsky added a comment - The issue resolved and merged. Will be released in next version.

            People

            Assignee:
            hagzag hagzag
            Reporter:
            domi Dominik Bartholdi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: