Hi Marc,

I ran out of time to get to the root of this - but I'm pretty sure it is an 
issue in Jenkins core.
Looks like when a build is scheduled and waitForStart() is called it never 
returns if the build is cancelled.

You may want to try with the latest and greatest Jenkins to check its been 
fixed - if not raise an issue in JIRA against core and buildflow.

/James


On Friday, 4 April 2014 21:53:08 UTC+1, teilo wrote:
>
> Reproduced the issue locally - but I think the root cause is Jenkins not 
> the plugin.
>
>
>
> On Friday, 4 April 2014 19:04:34 UTC+1, Marc MacIntyre wrote:
>>
>> The latest snapshot doesn't address this; it does abort running subjobs, 
>> and dequeues those that have not started, but if a sub-job is manually 
>> dequeued, the build flow never notices.
>>
>>
>> On Fri, Apr 4, 2014 at 1:39 AM, James Nord (jnord) <jn...@cisco.com>wrote:
>>
>>>  I Changed the handling of cancel since the last release – so that it 
>>> actually kills the downstream projects as well (including those in the 
>>> queue).
>>>
>>> Given that there is a good chance that this is fixed – if you feel brave 
>>> and want to try a snapshot.
>>>
>>>  
>>>
>>> /James
>>>
>>>  
>>>   
>>> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] 
>>> *On Behalf Of *Marc MacIntyre
>>> *Sent:* 03 April 2014 23:21
>>> *To:* jenkins...@googlegroups.com
>>> *Subject:* buildflow hang when cancelling queued builds
>>>  
>>>  
>>>  
>>> I've noticed with the buildflow plugin, when I run parallel jobs and 
>>> cancel one of the runs of a job while it is still in the queue, the build 
>>> flow never completes.
>>>  
>>>  
>>>  
>>> To illustrate - assume that job1 won't run concurrently:
>>>  
>>>  
>>>  
>>>    parallel(
>>>  
>>>         {build(job1)},
>>>   
>>>         {build(job1)},
>>>  
>>>    )
>>>  
>>>  
>>>  
>>> if the 2nd run of job1 is aborted while still in the queue, the build 
>>> flow will never complete - it will schedule both jobs, and finish the first 
>>> one, but never realize the 2nd one has been cancelled.
>>>  
>>>  
>>>  
>>> Anyone seen this?  Am I missing something?
>>>  
>>>  
>>>  
>>> On a related note; anyone have a good way to time out a build flow job?
>>>  
>>>  
>>>  
>>> -- 
>>>  
>>> Marc MacIntyre
>>>   
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>   
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Marc MacIntyre
>>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to