Skip to content

Commit

Permalink
RequirePOST for retrying build
Browse files Browse the repository at this point in the history
  • Loading branch information
sghill committed Jun 25, 2024
1 parent 54c30ed commit 500e7a8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.kohsuke.stapler.AncestorInPath;
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.interceptor.RequirePOST;

import hudson.model.Cause;
import hudson.model.AbstractBuild;
Expand Down Expand Up @@ -61,6 +62,7 @@ public String getUrlName() {
"retry" : null;
}

@RequirePOST
public void doIndex(StaplerResponse res, @CheckForNull @AncestorInPath AbstractBuild<?, ?> build) throws IOException {
if (build == null) {
// This should not happen as
Expand Down

0 comments on commit 500e7a8

Please sign in to comment.