jenkinsci / coordinator-plugin

Make deployment done by a single click.
https://plugins.jenkins.io/coordinator/
Other
16 stars 10 forks source link

Build button should not be triggered if the same build is building #33

Closed ace-han closed 8 years ago

ace-han commented 8 years ago

If a coordinator build (with the same build number) is building, we should forbid triggering again

Neither from the ui page -- build button, nor programming api.

ace-han commented 8 years ago

Okay, I would only ensure the triggering button will not be retrigger-able as possible as I can at least for the very first polling interval (5 seconds).

It's actually very tricky when I look into the detail of this issue. It's not worth to introduce ajax overhead to achieve this rare behavior.

In a word, I will only implement this in a less strict way to avoid ajax overhead.

Cases to consider during the course. Case 1, just triggered. Case 2, already done.