Skip to content

Commit

Permalink
No need to annotate stapler accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandell committed Oct 13, 2021
1 parent 9856369 commit 928d444
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/hudson/plugins/s3/S3ArtifactsAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import com.amazonaws.services.s3.model.ResponseHeaderOverrides;
import hudson.Functions;
import jenkins.model.RunAction2;
import jenkins.security.stapler.StaplerAccessibleType;
import jenkins.security.stapler.StaplerDispatchable;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;

Expand All @@ -25,7 +23,7 @@

import static javax.servlet.http.HttpServletResponse.SC_NOT_FOUND;

@ExportedBean @StaplerAccessibleType
@ExportedBean
public class S3ArtifactsAction implements RunAction2 {
private final Run<?,?> build; // Compatibility for old versions
private final String profile;
Expand Down Expand Up @@ -77,7 +75,6 @@ public List<FingerprintRecord> getArtifacts() {
return artifacts;
}

@StaplerDispatchable
public void doDownload(final StaplerRequest request, final StaplerResponse response) throws IOException, ServletException {
if (Functions.isArtifactsPermissionEnabled()) {
build.getParent().checkPermission(Run.ARTIFACTS);
Expand Down

0 comments on commit 928d444

Please sign in to comment.