/** * Schedules a build. * * Important: the actions should be persistable without outside references (e.g. don't store * references to this project). To provide parameters for a parameterized project, add a ParametersAction. If * no ParametersAction is provided for such a project, one will be created with the default parameter values. * * @param quietPeriod the quiet period to observer * @param c the cause for this build which should be recorded * @param actions a list of Actions that will be added to the build * @return whether the build was actually scheduled */ public boolean scheduleBuild(int quietPeriod, Cause c, Action... actions) { return scheduleBuild2(quietPeriod,c,actions)!=null; }
/** * Schedules a build of this project, and returns a {@link Future} object * to wait for the completion of the build. */ @WithBridgeMethods(Future.class) public QueueTaskFuture<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. * * @param actions * For the convenience of the caller, this array can contain null, and those will be silently ignored. */ @WithBridgeMethods(Future.class) public QueueTaskFuture<R> scheduleBuild2(int quietPeriod, Cause c, Action... actions) { return scheduleBuild2(quietPeriod,c,Arrays.asList(actions)); }
@Override public QueueTaskFuture<?> scheduleBuild2(int quietPeriod, Action... actions) { return delegate.asProject().scheduleBuild2(quietPeriod, null, actions); } @Override public PollingResult poll(TaskListener listener) {
/** * Schedules a build of this project, and returns a {@link Future} object * to wait for the completion of the build. * * @param actions * For the convenience of the caller, this collection can contain null, and those will be silently ignored. * @since 1.383 */ @WithBridgeMethods(Future.class) public QueueTaskFuture<R> scheduleBuild2(int quietPeriod, Cause c, Collection<? extends Action> actions) { List<Action> queueActions = new ArrayList<Action>(actions); if (c != null) { queueActions.add(new CauseAction(c)); } return scheduleBuild2(quietPeriod, queueActions.toArray(new Action[queueActions.size()])); }
/** * Schedules a build, and returns a {@link Future} object * to wait for the completion of the build. * * <p> * Production code shouldn't be using this, but for tests this is very convenient, so this isn't marked * as deprecated. */ @SuppressWarnings("deprecation") @WithBridgeMethods(Future.class) public QueueTaskFuture<R> scheduleBuild2(int quietPeriod) { return scheduleBuild2(quietPeriod, new LegacyCodeCause()); }
/** * 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) { 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) { 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) { 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) { 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. * * @param actions * For the convenience of the caller, this array can contain null, and those will be silently ignored. */ public Future<R> scheduleBuild2(int quietPeriod, Cause c, Action... actions) { return scheduleBuild2(quietPeriod, c, Arrays.asList(actions)); }
/** * Schedules a build of this project, and returns a {@link Future} object to * wait for the completion of the build. * * @param actions For the convenience of the caller, this array can contain * null, and those will be silently ignored. */ public Future<R> scheduleBuild2(int quietPeriod, Cause c, Action... actions) { return scheduleBuild2(quietPeriod, c, Arrays.asList(actions)); }
/** * Schedules a build of this project, and returns a {@link Future} object * to wait for the completion of the build. * * @param actions * For the convenience of the caller, this array can contain null, and those will be silently ignored. */ public Future<R> scheduleBuild2(int quietPeriod, Cause c, Action... actions) { return scheduleBuild2(quietPeriod, c, Arrays.asList(actions)); }
/** * Schedules a build of this project, and returns a {@link Future} object to * wait for the completion of the build. * * @param actions For the convenience of the caller, this array can contain * null, and those will be silently ignored. */ public Future<R> scheduleBuild2(int quietPeriod, Cause c, Action... actions) { return scheduleBuild2(quietPeriod, c, Arrays.asList(actions)); }
/** * Schedules a build of this project, and returns a {@link Future} object * to wait for the completion of the build. * * @param actions * For the convenience of the caller, this array can contain null, and those will be silently ignored. */ @WithBridgeMethods(Future.class) public QueueTaskFuture<R> scheduleBuild2(int quietPeriod, Cause c, Action... actions) { return scheduleBuild2(quietPeriod,c,Arrays.asList(actions)); }
/** * Schedules a build, and returns a {@link Future} object to wait for the * completion of the build. * * <p> Production code shouldn't be using this, but for tests this is very * convenient, so this isn't marked as deprecated. */ public Future<R> scheduleBuild2(int quietPeriod) { return scheduleBuild2(quietPeriod, new LegacyCodeCause()); }
/** * Schedules a build of this project, and returns a {@link Future} object * to wait for the completion of the build. */ @WithBridgeMethods(Future.class) public QueueTaskFuture<R> scheduleBuild2(int quietPeriod, Cause c) { return scheduleBuild2(quietPeriod, c, new Action[0]); }
/** * Schedules a build, and returns a {@link Future} object to wait for the * completion of the build. * * <p> Production code shouldn't be using this, but for tests this is very * convenient, so this isn't marked as deprecated. */ public Future<R> scheduleBuild2(int quietPeriod) { return scheduleBuild2(quietPeriod, new LegacyCodeCause()); }
/** * Schedules a build, and returns a {@link Future} object * to wait for the completion of the build. * * <p> * Production code shouldn't be using this, but for tests this is very convenient, so this isn't marked * as deprecated. */ public Future<R> scheduleBuild2(int quietPeriod) { return scheduleBuild2(quietPeriod, new LegacyCodeCause()); }
@Override public QueueTaskFuture<?> scheduleBuild2(int quietPeriod, Action... actions) { return delegate.asProject().scheduleBuild2(quietPeriod, null, actions); } @Override public PollingResult poll(TaskListener listener) {