/** * @deprecated as of 1.311 * Use {@link #schedule(Task, int)} */ @Deprecated public boolean add(Task p, int quietPeriod) { return schedule(p, quietPeriod)!=null; }
/** * @deprecated as of 1.311 * Use {@link #schedule(AbstractProject)} */ @Deprecated public boolean add(AbstractProject p) { return schedule(p)!=null; }
/** * @deprecated as of 1.311 * Use {@link #schedule(Task, int, Action...)} */ @Deprecated public boolean add(Task p, int quietPeriod, Action... actions) { return schedule(p, quietPeriod, actions)!=null; }
public @CheckForNull WaitingItem schedule(Task p, int quietPeriod) { return schedule(p, quietPeriod, new Action[0]); }
/** * Schedules a new build with a custom quiet period. * * <p> * Left for backward compatibility with <1.114. * * @since 1.105 * @deprecated as of 1.311 * Use {@link #schedule(Task, int)} */ @Deprecated public boolean add(AbstractProject p, int quietPeriod) { return schedule(p, quietPeriod)!=null; }
/** * Schedule a new build for this project. * @see #schedule(Task, int) */ public @CheckForNull WaitingItem schedule(AbstractProject p) { return schedule(p, p.getQuietPeriod()); }
if (o instanceof Task) { schedule((Task)o, 0); } else if (o instanceof Item) { Item item = (Item)o;
WaitingItem item = Jenkins.getInstance().getQueue().schedule( getJob(), delay.getTimeInSeconds(), new ParametersAction(values), new CauseAction(new Cause.UserIdCause())); if (item!=null) {
/** * @deprecated as of 1.311 * Use {@link #schedule(Task, int)} */ public synchronized boolean add(Task p, int quietPeriod) { return schedule(p, quietPeriod)!=null; }
/** * Schedules a new build with a custom quiet period. * * <p> Left for backward compatibility with <1.114. * * @since 1.105 * @deprecated as of 1.311 Use {@link #schedule(Task, int)} */ public boolean add(AbstractProject p, int quietPeriod) { return schedule(p, quietPeriod) != null; }
/** * @deprecated as of 1.311 * Use {@link #schedule(AbstractProject)} */ public boolean add(AbstractProject p) { return schedule(p)!=null; }
/** * @deprecated as of 1.311 * Use {@link #schedule(Task, int, Action...)} */ public synchronized boolean add(Task p, int quietPeriod, Action... actions) { return schedule(p, quietPeriod, actions)!=null; }
/** * Convenience wrapper method around {@link #schedule(Task, int, List)} */ public synchronized WaitingItem schedule(Task p, int quietPeriod, Action... actions) { return schedule(p, quietPeriod, Arrays.asList(actions)); }
/** * @deprecated as of 1.311 * Use {@link #schedule(Task, int)} */ @Deprecated public boolean add(Task p, int quietPeriod) { return schedule(p, quietPeriod)!=null; }
/** * Convenience wrapper method around {@link #schedule(Task, int, List)} */ public synchronized WaitingItem schedule(Task p, int quietPeriod, Action... actions) { return schedule(p, quietPeriod, Arrays.asList(actions)); }
/** * Schedule a new build for this project. * * @return true if the project is actually added to the queue. * false if the queue contained it and therefore the add() * was noop */ public WaitingItem schedule(AbstractProject p) { return schedule(p, p.getQuietPeriod()); }
/** * Schedule a new build for this project. * * @return true if the project is actually added to the queue. * false if the queue contained it and therefore the add() * was noop */ public WaitingItem schedule(AbstractProject p) { return schedule(p, p.getQuietPeriod()); }
/** * Schedule a new build for this project. * @see #schedule(Task, int) */ public @CheckForNull WaitingItem schedule(AbstractProject p) { return schedule(p, p.getQuietPeriod()); }
public boolean scheduleBuild(final List<? extends Action> actions, final Cause c) { final List<Action> allActions = new ArrayList<>(); if (actions != null) { allActions.addAll(actions); } allActions.add(new CauseAction(c)); return Jenkins.getInstance().getQueue().schedule(this, getQuietPeriod(), allActions) != null; }
/** * * @param parameters * Can be null. */ public boolean scheduleBuild(ParametersAction parameters, Cause c) { return Hudson.getInstance().getQueue().schedule(this, getQuietPeriod(), parameters, new CauseAction(c))!=null; } }