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

jenkins-multijob-plugin - Multijob plugin throws CancellationException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Postponed
    • Component/s: multijob-plugin
    • Labels:
      None
    • Environment:
      jenkins-multijob-plugin: 1.9
      Jenkins ver. 1.480.1
      SUSE Linux Enterprise Server 11 (x86_64)
      Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
      Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
    • Similar Issues:

      Description

      We have a setup where multiple multijobs of the same type are running multiple descendant parallel jobs:

      -Test-my-branch:
      – test-set (param 1)
      – test-set (param 2)
      -Test-my-branch:
      – test-set (param 1)
      – test-set (param 2)

      Sometimes, when one of the test-set jobs fail (for example on compilation) the "parent" Test-my-branch fails, but also one or more Test-my-branch currently running jobs are interrupted with Cancellation exception:

      09:26:43 FATAL: null
      09:26:43 java.util.concurrent.CancellationException
      09:26:43 at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:77)
      09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:106)
      09:26:43 at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:75)
      09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
      09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
      09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
      09:26:43 at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:117)
      09:26:43 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      09:26:43 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      09:26:43 at hudson.model.Build$BuildExecution.build(Build.java:199)
      09:26:43 at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      09:26:43 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:67)
      09:26:43 at hudson.model.Run.execute(Run.java:1502)
      09:26:43 at hudson.model.Run.run(Run.java:1448)
      09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:60)
      09:26:43 at hudson.model.ResourceController.execute(ResourceController.java:88)
      09:26:43 at hudson.model.Executor.run(Executor.java:236)

        Attachments

          Issue Links

            Activity

            Hide
            kowalczy Jacek Kowalczyk added a comment -

            proposed patch for issue JENKINS-19015

            Show
            kowalczy Jacek Kowalczyk added a comment - proposed patch for issue JENKINS-19015
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jacek Kowalczyk
            Path:
            src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java
            http://jenkins-ci.org/commit/tikal-multijob-plugin/e52309a66a9471508605da73051cedd9edcc63b0
            Log:
            proposed solution for issue JENKINS-19015

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jacek Kowalczyk Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java http://jenkins-ci.org/commit/tikal-multijob-plugin/e52309a66a9471508605da73051cedd9edcc63b0 Log: proposed solution for issue JENKINS-19015
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Haggai Philip Zagury
            Path:
            src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java
            http://jenkins-ci.org/commit/tikal-multijob-plugin/f9336d97b8ca64c04355e00c30cc611550c31d35
            Log:
            Merge pull request #27 from jacekkowalczyk82/master

            proposed solution for issue JENKINS-19015

            Compare: https://github.com/jenkinsci/tikal-multijob-plugin/compare/c5647ef26e7e...f9336d97b8ca

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Haggai Philip Zagury Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java http://jenkins-ci.org/commit/tikal-multijob-plugin/f9336d97b8ca64c04355e00c30cc611550c31d35 Log: Merge pull request #27 from jacekkowalczyk82/master proposed solution for issue JENKINS-19015 Compare: https://github.com/jenkinsci/tikal-multijob-plugin/compare/c5647ef26e7e...f9336d97b8ca
            Hide
            beaverbeliever Russell B added a comment -

            I found another way to reproduce this error: disable one of the downstream jobs after starting the multijob, but before the downstream job has been started.

            Show
            beaverbeliever Russell B added a comment - I found another way to reproduce this error: disable one of the downstream jobs after starting the multijob, but before the downstream job has been started.
            Hide
            mweiss88 Matthew Weiss added a comment -

            Did anyone ever discover a solution to this problem? I am having the exact same issue using the Multijob plugin right now

            Show
            mweiss88 Matthew Weiss added a comment - Did anyone ever discover a solution to this problem? I am having the exact same issue using the Multijob plugin right now
            Hide
            yorammi Yoram Michaeli added a comment -

            Closing issue as part of tikal-multijob-plugin issues cleanup.
            If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

            Show
            yorammi Yoram Michaeli added a comment - Closing issue as part of tikal-multijob-plugin issues cleanup. If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

              People

              • Assignee:
                Unassigned
                Reporter:
                fanhaf Michał Guminiak
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: