提交 e9562a35 编写于 作者: K kohsuke

added an overloaded method.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7565 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a85a4094
......@@ -347,6 +347,11 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
return Hudson.getInstance().getQueue().add(this);
}
public boolean scheduleBuild(int quietPeriod) {
if(isDisabled()) return false;
return Hudson.getInstance().getQueue().add(this,quietPeriod);
}
/**
* Schedules a polling of this project.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册