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

Specify that a task was cancelled when CancellationException happens

    Details

    • Similar Issues:

      Description

      If a task which is in the queue is cancelled then the following stacktrace happens.

      Started by user admin
      parallel {
          Schedule job test
          Schedule job test2
      ERROR: Failed to run DSL Script
      java.util.concurrent.ExecutionException: java.util.concurrent.CancellationException
      	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
      	at java_util_concurrent_Future$get.call(Unknown Source)
      	at com.cloudbees.plugins.flow.FlowDelegate$_parallel_closure6.doCall(FlowDSL.groovy:456)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903)
      	at groovy.lang.Closure.call(Closure.java:415)
      	at groovy.lang.Closure.call(Closure.java:428)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1379)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1351)
      	at org.codehaus.groovy.runtime.dgm$170.invoke(Unknown Source)
      

      It might be obvious for some Jenkins users that it has happened because someone or something cancelled the task on the queue, however according with my experience providing Jenkins support it is not for other users.

        Attachments

          Activity

          Show
          fbelzunc Félix Belzunce Arcos added a comment - Related to https://issues.jenkins-ci.org/browse/JENKINS-25092
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Scott Hebert
          Path:
          src/main/java/com/sonyericsson/jenkins/plugins/bfa/model/dbf/BuildFlowDBF.java
          http://jenkins-ci.org/commit/build-failure-analyzer-plugin/e059156ee0b24f457ddf37051a98ffaea66a6e0c
          Log:
          Prevent breakage involving build-flow plugin

          In certain cases, the Build Flow plugin can return a CancellationExcpetion
          when iterating over downstream builds.

          This has the effect of breaking both the Job and Build UIs.

          This PR protects against this and [FIXES JENKINS-25396]

          It is also related to JENKINS-32144 and JENKINS-25092

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Scott Hebert Path: src/main/java/com/sonyericsson/jenkins/plugins/bfa/model/dbf/BuildFlowDBF.java http://jenkins-ci.org/commit/build-failure-analyzer-plugin/e059156ee0b24f457ddf37051a98ffaea66a6e0c Log: Prevent breakage involving build-flow plugin In certain cases, the Build Flow plugin can return a CancellationExcpetion when iterating over downstream builds. This has the effect of breaking both the Job and Build UIs. This PR protects against this and [FIXES JENKINS-25396] It is also related to JENKINS-32144 and JENKINS-25092

            People

            • Assignee:
              fbelzunc Félix Belzunce Arcos
              Reporter:
              fbelzunc Félix Belzunce Arcos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: