Skip to content

Commit

Permalink
restore video file removal if upload completed successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelendik committed Jan 17, 2021
1 parent 1f8f83a commit 5742d1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/zebrunner/mcloud/grid/s3/S3Uploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
import software.amazon.awssdk.services.s3.model.PutObjectRequest;

public class S3Uploader {
//TODO: think about multi tenants per single selenium-hub (should we support it or not)?
private final static String TENANT = System.getenv("S3_TENANT");

private final static String REGION = System.getenv("S3_REGION");
private final static String BUCKET = System.getenv("S3_BUCKET");
private final static String ENDPOINT = System.getenv("S3_ENDPOINT");
Expand Down Expand Up @@ -83,7 +81,7 @@ public void uploadArtifact(String sessionId, File file) {
} else {
System.out.println(msg);
System.out.println(String.format("File uploaded to S3. File: %s; eTag: %s", file, msg.eTag()));
// file.delete();
file.delete();
}
});

Expand Down

0 comments on commit 5742d1e

Please sign in to comment.