From f68c67b5101e269ddc7d3ea8f6da64db566149f4 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 28 May 2019 09:39:12 +0200 Subject: [PATCH] Delete temp report after upload --- .../src/main/java/org/sonar/scanner/report/ReportUploader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportUploader.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportUploader.java index 96ed23ceaa1..f2f053982c1 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportUploader.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportUploader.java @@ -124,6 +124,7 @@ public class ReportUploader { private Path createZip() throws IOException { Path reportZip = Files.createTempFile("scanner-report", ".zip"); + reportZip.toFile().deleteOnExit(); ZipUtils.zipDir(reportDir.toFile(), reportZip.toFile()); return reportZip; } -- 2.39.5