|
|
|
|
@ -419,11 +419,20 @@ class BuildImageTests extends AbstractArchiveIntegrationTests {
@@ -419,11 +419,20 @@ class BuildImageTests extends AbstractArchiveIntegrationTests {
|
|
|
|
|
Path launchCachePath = Paths.get(tempDir, "junit-image-cache-" + testBuildId + "-launch"); |
|
|
|
|
assertThat(buildCachePath).exists().isDirectory(); |
|
|
|
|
assertThat(launchCachePath).exists().isDirectory(); |
|
|
|
|
FileSystemUtils.deleteRecursively(buildCachePath); |
|
|
|
|
FileSystemUtils.deleteRecursively(launchCachePath); |
|
|
|
|
cleanupCache(buildCachePath); |
|
|
|
|
cleanupCache(launchCachePath); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void cleanupCache(Path buildCachePath) { |
|
|
|
|
try { |
|
|
|
|
FileSystemUtils.deleteRecursively(buildCachePath); |
|
|
|
|
} |
|
|
|
|
catch (Exception ex) { |
|
|
|
|
// ignore
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@TestTemplate |
|
|
|
|
void whenBuildImageIsInvokedWithCreatedDate(MavenBuild mavenBuild) { |
|
|
|
|
String testBuildId = randomString(); |
|
|
|
|
|