提交 19cdcb0e 编写于 作者: K kohsuke

Quiet period implementation is changed to work like what most people would expect.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11009 71c3de6d-444a-0410-be80-ed276b4c234a
上级 ccbeb725
......@@ -297,11 +297,21 @@ public class Queue extends ResourceController {
return false;
WaitingItem wi = (WaitingItem) item;
if (wi.timestamp.before(due))
return false; // no double queueing
// allow the due date to be pulled in
wi.timestamp = due;
if(quietPeriod<=0) {
// the user really wants to build now, and they mean NOW.
// so let's pull in the timestamp if we can.
if (wi.timestamp.after(due))
wi.timestamp = due;
else
return false;
} else {
// otherwise we do the normal quiet period implementation
if (wi.timestamp.before(due))
wi.timestamp = due; // quiet period timer reset. start the period over again
else
return false;
}
} else {
LOGGER.fine(p.getName() + " added to queue");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册