Skip to content
Permalink
Browse files
JENKINS-40448: remove method added to S3ArtifactsAction
As per comment on #97
  • Loading branch information
juliantcook committed Jan 2, 2017
1 parent b585d0d commit 3e43e4fd170f3f5f7a8ebf52b8903818afc2f731
Showing with 1 addition and 5 deletions.
  1. +0 −4 src/main/java/hudson/plugins/s3/S3ArtifactsAction.java
  2. +1 −1 src/main/java/hudson/plugins/s3/S3BucketPublisher.java
@@ -66,10 +66,6 @@ public String getProfile() {
return artifacts;
}

public void addArtifacts(List<FingerprintRecord> artifacts) {
this.artifacts.addAll(artifacts);
}

public void doDownload(final StaplerRequest request, final StaplerResponse response) throws IOException, ServletException {
final String restOfPath = request.getRestOfPath();
if (restOfPath == null) {
@@ -273,7 +273,7 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath ws, @Nonnull Launc
private void addS3ArtifactsAction(Run<?, ?> run, S3Profile profile, List<FingerprintRecord> artifacts) {
S3ArtifactsAction existingAction = run.getAction(S3ArtifactsAction.class);
if (existingAction != null) {
existingAction.addArtifacts(artifacts);
existingAction.getArtifacts().addAll(artifacts);
} else {
run.addAction(new S3ArtifactsAction(run, profile, artifacts));
}

0 comments on commit 3e43e4f

Please sign in to comment.