[JIRA] [build-flow-plugin] (JENKINS-32144) Specify that a task was cancelled when CancellationException happens

6 views
Skip to first unread message

fbelzunc@gmail.com (JIRA)

unread,
Dec 18, 2015, 5:48:01 AM12/18/15
to jenkinsc...@googlegroups.com
Félix Belzunce Arcos created an issue
 
Jenkins / Improvement JENKINS-32144
Specify that a task was cancelled when CancellationException happens
Issue Type: Improvement Improvement
Assignee: Félix Belzunce Arcos
Components: build-flow-plugin
Created: 18/Dec/15 10:47 AM
Priority: Minor Minor
Reporter: Félix Belzunce Arcos

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

fbelzunc@gmail.com (JIRA)

unread,
Dec 18, 2015, 5:52:01 AM12/18/15
to jenkinsc...@googlegroups.com
Félix Belzunce Arcos started work on Improvement JENKINS-32144
 
Change By: Félix Belzunce Arcos
Status: Open In Progress

fbelzunc@gmail.com (JIRA)

unread,
Dec 18, 2015, 6:10:01 AM12/18/15
to jenkinsc...@googlegroups.com

fbelzunc@gmail.com (JIRA)

unread,
Dec 18, 2015, 6:11:01 AM12/18/15
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Jan 5, 2016, 6:58:04 AM1/5/16
to jenkinsc...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages