/** * Supports build trigger with parameters via an HTTP GET or POST. * Currently only String parameters are supported. * @see ParameterizedJobMixIn#doBuildWithParameters */ default void doBuildWithParameters(StaplerRequest req, StaplerResponse rsp, @QueryParameter TimeDuration delay) throws IOException, ServletException { getParameterizedJobMixIn().doBuildWithParameters(req, rsp, delay); }
/** * Schedules a new build command. * @see ParameterizedJobMixIn#doBuild */ default void doBuild(StaplerRequest req, StaplerResponse rsp, @QueryParameter TimeDuration delay) throws IOException, ServletException { getParameterizedJobMixIn().doBuild(req, rsp, delay); }
/** * Provides a standard implementation of {@link SCMTriggerItem#scheduleBuild2} to schedule a build with the ability to wait for its result. * That job method is often used during functional tests ({@code JenkinsRule.assertBuildStatusSuccess}). * @param quietPeriod seconds to wait before starting (normally 0) * @param actions various actions to associate with the scheduling, such as {@link ParametersAction} or {@link CauseAction} * @return a handle by which you may wait for the build to complete (or just start); or null if the build was not actually scheduled for some reason */ @CheckForNull default QueueTaskFuture<RunT> scheduleBuild2(int quietPeriod, Action... actions) { return getParameterizedJobMixIn().scheduleBuild2(quietPeriod, actions); }
@Override default boolean scheduleBuild(Cause c) { return getParameterizedJobMixIn().scheduleBuild(c); }
/** * Provides a standard implementation of {@link SCMTriggerItem#scheduleBuild2} to schedule a build with the ability to wait for its result. * That job method is often used during functional tests ({@code JenkinsRule.assertBuildStatusSuccess}). * @param quietPeriod seconds to wait before starting (normally 0) * @param actions various actions to associate with the scheduling, such as {@link ParametersAction} or {@link CauseAction} * @return a handle by which you may wait for the build to complete (or just start); or null if the build was not actually scheduled for some reason */ @CheckForNull default QueueTaskFuture<RunT> scheduleBuild2(int quietPeriod, Action... actions) { return getParameterizedJobMixIn().scheduleBuild2(quietPeriod, actions); }
/** * @deprecated use {@link #scheduleBuild(int, Cause)} */ @Deprecated @Override default boolean scheduleBuild(int quietPeriod) { return getParameterizedJobMixIn().scheduleBuild(quietPeriod); }
/** * Text to display for a build button. * Uses {@link #BUILD_NOW_TEXT}. * @see ParameterizedJobMixIn#getBuildNowText */ default String getBuildNowText() { return getParameterizedJobMixIn().getBuildNowText(); }
@Override default boolean scheduleBuild(int quietPeriod, Cause c) { return getParameterizedJobMixIn().scheduleBuild(quietPeriod, c); }
/** * For use from {@link BuildButtonColumn}. * @see ParameterizedJobMixIn#isParameterized */ default boolean isParameterized() { return getParameterizedJobMixIn().isParameterized(); }
/** * Cancels a scheduled build. * @see ParameterizedJobMixIn#doCancelQueue */ @RequirePOST default void doCancelQueue(StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { getParameterizedJobMixIn().doCancelQueue(req, rsp); }
/** * @deprecated use {@link #scheduleBuild(Cause)} */ @Deprecated @Override default boolean scheduleBuild() { return getParameterizedJobMixIn().scheduleBuild(); }
/** * Supports build trigger with parameters via an HTTP GET or POST. * Currently only String parameters are supported. * @see ParameterizedJobMixIn#doBuildWithParameters */ default void doBuildWithParameters(StaplerRequest req, StaplerResponse rsp, @QueryParameter TimeDuration delay) throws IOException, ServletException { getParameterizedJobMixIn().doBuildWithParameters(req, rsp, delay); }
/** * Schedules a new build command. * @see ParameterizedJobMixIn#doBuild */ default void doBuild(StaplerRequest req, StaplerResponse rsp, @QueryParameter TimeDuration delay) throws IOException, ServletException { getParameterizedJobMixIn().doBuild(req, rsp, delay); }
@Override default boolean scheduleBuild(int quietPeriod, Cause c) { return getParameterizedJobMixIn().scheduleBuild(quietPeriod, c); }
@Override default boolean scheduleBuild(Cause c) { return getParameterizedJobMixIn().scheduleBuild(c); }
/** * Text to display for a build button. * Uses {@link #BUILD_NOW_TEXT}. * @see ParameterizedJobMixIn#getBuildNowText */ default String getBuildNowText() { return getParameterizedJobMixIn().getBuildNowText(); }
/** * Cancels a scheduled build. * @see ParameterizedJobMixIn#doCancelQueue */ @RequirePOST default void doCancelQueue(StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { getParameterizedJobMixIn().doCancelQueue(req, rsp); }
/** * For use from {@link BuildButtonColumn}. * @see ParameterizedJobMixIn#isParameterized */ default boolean isParameterized() { return getParameterizedJobMixIn().isParameterized(); }