From 3b51f9e676fbeafeeb7b0c50ae740028a6cddde4 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 24 Aug 2015 16:20:17 -0400 Subject: [PATCH] scheduleBuild() uses the deprecate LegacyCodeCause. --- src/main/java/jenkins/branch/MultiBranchProject.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/jenkins/branch/MultiBranchProject.java b/src/main/java/jenkins/branch/MultiBranchProject.java index 94ab0941..89fd51af 100644 --- a/src/main/java/jenkins/branch/MultiBranchProject.java +++ b/src/main/java/jenkins/branch/MultiBranchProject.java @@ -373,7 +373,7 @@ private synchronized void loadIndexing() { } } if (indexing.getTimeInMillis() == 0 && isBuildable()) { - scheduleBuild(); + scheduleBuild(null); } } @@ -1065,7 +1065,7 @@ public void doConfigSubmit(StaplerRequest req, StaplerResponse rsp) } } if (reindex) { - scheduleBuild(); + scheduleBuild(null); } } @@ -1964,6 +1964,8 @@ public boolean isBuildable() { /** * {@inheritDoc} */ + @Deprecated + @Override public boolean scheduleBuild() { return scheduleBuild(new Cause.LegacyCodeCause()); } @@ -1971,6 +1973,8 @@ public boolean scheduleBuild() { /** * {@inheritDoc} */ + @Deprecated + @Override public boolean scheduleBuild(int quietPeriod) { return scheduleBuild(quietPeriod, new Cause.LegacyCodeCause()); }