mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
added an overloaded method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7565 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
a85a4094ba
commit
e9562a352a
1 file changed
+5
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user