From: Julien HENRY Date: Tue, 28 May 2019 07:39:12 +0000 (+0200) Subject: Delete temp report after upload X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f68c67b5101e269ddc7d3ea8f6da64db566149f4;p=sonarqube.git Delete temp report after upload --- 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; }