[workflow] preemting older builds in throttled stages

19 views
Skip to first unread message

Olve Hansen

unread,
Jun 19, 2015, 9:26:24 AM6/19/15
to jenkins...@googlegroups.com
I have a question about stages. 

Newer builds are always given priority when entering such a throttled stage; older builds will simply exit early if they are preëmpted.

I have two throttled stages like this:

stage name: 'publish', concurrency: 1
flow
.publish()


stage name
: 'qadeploy', concurrency: 1
input message
: "Tag and deploy QA env?"
flow
.qadeploy()


Where flow is an object loaded from flow.groovy, and the qadeploy() method is handling 'node{ ... }' allocation etc.

What I see is that the newest build is waiting for at the throttled stage which is waiting for a human to answer the question.

As a programmer I understand why this is happening, but I don't understand how to structure the flow to be able to answer yes/no to only the newest build and make an older build 'exit early'. If I move the input message before the stage start the newest build just waits to enter 'publish' instead of 'qadeploy'.

I really like the concepts and principles behind the workflow-plugin(s) but I am struggling to like the implementation and usability of the suite...

Jesse Glick

unread,
Aug 12, 2015, 4:57:26 PM8/12/15
to Jenkins Users
On Friday, June 19, 2015 at 9:26:24 AM UTC-4, Olve Hansen wrote:
I don't understand how to structure the flow to be able to answer yes/no to only the newest build and make an older build 'exit early'. If I move the input message before the stage start the newest build just waits to enter 'publish' instead of 'qadeploy'.

Reply all
Reply to author
Forward
0 new messages