diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java index 1532b722e7094bfee889bb611d77a0bf7ad641fa..1bbd06b5c884b31b77b246355c6770354a9340f0 100644 --- a/core/src/main/java/hudson/model/AbstractProject.java +++ b/core/src/main/java/hudson/model/AbstractProject.java @@ -402,6 +402,14 @@ public abstract class AbstractProject
,R extends A public boolean getHasCustomQuietPeriod() { return quietPeriod!=null; } + + /** + * Sets the custom quiet period of this project, or revert to the global default if null is given. + */ + public void setQuitPeriod(Integer seconds) throws IOException { + this.quietPeriod = seconds; + save(); + } public boolean hasCustomScmCheckoutRetryCount(){ return scmCheckoutRetryCount != null;