From b70e53fe5b76e8048a4e44391ea3f733a53df21d Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 11 Mar 2009 00:59:26 +0000 Subject: [PATCH] Production code shouldn't be using this, but for tests, this is very convenience, so let's not mark this as deprecated. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16155 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/AbstractProject.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java index 16bfc446e6..46e298dd7a 100644 --- a/core/src/main/java/hudson/model/AbstractProject.java +++ b/core/src/main/java/hudson/model/AbstractProject.java @@ -509,8 +509,12 @@ public abstract class AbstractProject

,R extends A } /** - * @deprecated - * Use {@link #scheduleBuild2(int, Cause)}. Since 1.283 + * Schedules a build, and returns a {@link Future} object + * to wait for the completion of the build. + * + *

+ * Production code shouldn't be using this, but for tests, this is very convenience, so this isn't marked + * as deprecated. */ public Future scheduleBuild2(int quietPeriod) { return scheduleBuild2(quietPeriod, new LegacyCodeCause()); -- GitLab