Concurrent builds in a BuildFlow

22 views
Skip to first unread message

Jim Adams

unread,
Feb 18, 2015, 7:36:41 PM2/18/15
to jenkins...@googlegroups.com
I am using the BuildFlow plugin to attempt to sequence a whole bunch of builds. The same build could be queued by different build flow jobs. The problem is that if the different build flow jobs are run at the same time one will fail if the other has already enqueued the job. Is there a way to just simply skip that build? Or wait for it to end without enqueuing it?

James Nord

unread,
Feb 19, 2015, 4:30:28 AM2/19/15
to jenkins...@googlegroups.com
HI,

I'm not clear on your use case but BuildFlowExtensions[1] contains a "block" DSL that may help you.

The block DSL ensures that only one Run (build) of a particular BuildFlow will execute the steps contained within it concurrently.
It further will only allow the most recent FlowRun to proceed if multiple become blocked.
It is expected that the blockName will only be used once in a Flow - using the blockname multiple times will work, however the results may not be what the user intended).

If the block is not executed then the flow will be aborted.

 
/James

Jim Adams

unread,
Feb 19, 2015, 7:01:50 AM2/19/15
to jenkins...@googlegroups.com
I saw that but I don't want to block until it is done, I want to not build it if it is already in the queue.

Sent from my iPad
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/n5kFR7teLOg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ba7479fe-0048-4a3d-88c9-51d3d182cfe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages