提交 8647389b 编写于 作者: H huybrechts

added a test for SVN location with a variable

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15538 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f8c17fe1
......@@ -517,6 +517,14 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* to wait for the completion of the build.
*/
public Future<R> scheduleBuild2(int quietPeriod, Cause c) {
return scheduleBuild2(quietPeriod, c, new Action[0]);
}
/**
* Schedules a build of this project, and returns a {@link Future} object
* to wait for the completion of the build.
*/
public Future<R> scheduleBuild2(int quietPeriod, Cause c, Action... actions) {
R lastBuild = getLastBuild();
final int n;
if(lastBuild!=null) n = lastBuild.getNumber();
......@@ -535,7 +543,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
{ r.register(); }
};
scheduleBuild(quietPeriod, c);
scheduleBuild(quietPeriod, c, actions);
return f;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册