Skip to content

Commit

Permalink
https://github.com/jenkinsci/jenkins/pull/9672#issuecomment-2324945196
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Sep 2, 2024
1 parent 604db9f commit b68c552
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/src/main/java/jenkins/model/ParameterizedJobMixIn.java
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,19 @@ default void doBuildWithParameters(StaplerRequest2 req, StaplerResponse2 rsp, @Q
getParameterizedJobMixIn().doBuildWithParameters(req, rsp, delay);
}

/**
* @deprecated use {@link #doBuildWithParameters(StaplerRequest2, StaplerResponse2, TimeDuration)}
*/
@Deprecated
@StaplerNotDispatchable
default void doBuildWithParameters(StaplerRequest req, StaplerResponse rsp, @QueryParameter TimeDuration delay) throws IOException, javax.servlet.ServletException {
try {
getParameterizedJobMixIn().doBuildWithParameters(StaplerRequest.toStaplerRequest2(req), StaplerResponse.toStaplerResponse2(rsp), delay);
} catch (ServletException e) {
throw ServletExceptionWrapper.fromJakartaServletException(e);
}
}

/**
* Cancels a scheduled build.
* @see ParameterizedJobMixIn#doCancelQueue
Expand Down

0 comments on commit b68c552

Please sign in to comment.