|
71 | 71 | import net.sf.json.JSON;
|
72 | 72 | import net.sf.json.JSONObject;
|
73 | 73 | import org.apache.commons.io.FileUtils;
|
74 |
| -import org.apache.commons.io.IOUtils; |
75 | 74 | import org.jvnet.localizer.Localizable;
|
76 | 75 | import org.kohsuke.accmod.Restricted;
|
77 | 76 | import org.kohsuke.accmod.restrictions.NoExternalUse;
|
@@ -373,7 +372,8 @@ public HttpRedirect doGenerateBundleAsync(StaplerRequest2 req, StaplerResponse2
|
373 | 372 | throw new IOException("Failed to create directory: " + outputDir.toAbsolutePath(), e);
|
374 | 373 | }
|
375 | 374 | }
|
376 |
| - try (FileOutputStream fileOutputStream = new FileOutputStream(new File(outputDir.toString(), SYNC_SUPPORT_BUNDLE))) { |
| 375 | + try (FileOutputStream fileOutputStream = |
| 376 | + new FileOutputStream(new File(outputDir.toString(), SYNC_SUPPORT_BUNDLE))) { |
377 | 377 | SupportPlugin.setRequesterAuthentication(Jenkins.getAuthentication2());
|
378 | 378 | try {
|
379 | 379 | SupportPlugin.writeBundleForSyncComponents(fileOutputStream, syncComponent);
|
@@ -552,7 +552,8 @@ protected void compute() throws Exception {
|
552 | 552 | }
|
553 | 553 | }
|
554 | 554 |
|
555 |
| - try (FileOutputStream fileOutputStream = new FileOutputStream(new File(outputDir.toString(), supportBundleName))) { |
| 555 | + try (FileOutputStream fileOutputStream = |
| 556 | + new FileOutputStream(new File(outputDir.toString(), supportBundleName))) { |
556 | 557 | SupportPlugin.setRequesterAuthentication(Jenkins.getAuthentication2());
|
557 | 558 | try {
|
558 | 559 | SupportPlugin.writeBundle(fileOutputStream, components, this::progress, outputDir);
|
|
0 commit comments