]> source.dussan.org Git - sonarqube.git/commitdiff
Delete temp report after upload feature/jh/scanner_report_uploader
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 28 May 2019 07:39:12 +0000 (09:39 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Tue, 28 May 2019 07:39:12 +0000 (09:39 +0200)
sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ReportUploader.java

index 96ed23ceaa101290b7781b12a20e0be26af34d94..f2f053982c157865bd43a29671742a38d4ea8805 100644 (file)
@@ -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;
   }