parent
8c1d9872d2
commit
a8452b54b5
|
@ -118,6 +118,7 @@ public interface BuildLog {
|
||||||
* Log that a cache cleanup step was not completed successfully.
|
* Log that a cache cleanup step was not completed successfully.
|
||||||
* @param cache the cache
|
* @param cache the cache
|
||||||
* @param exception any exception that caused the failure
|
* @param exception any exception that caused the failure
|
||||||
|
* @since 3.2.6
|
||||||
*/
|
*/
|
||||||
void failedCleaningWorkDir(Cache cache, Exception exception);
|
void failedCleaningWorkDir(Cache cache, Exception exception);
|
||||||
|
|
||||||
|
|
|
@ -320,9 +320,9 @@ class BootBuildImageIntegrationTests {
|
||||||
cleanupCache(launchCachePath);
|
cleanupCache(launchCachePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void cleanupCache(Path buildCachePath) {
|
private static void cleanupCache(Path cachePath) {
|
||||||
try {
|
try {
|
||||||
FileSystemUtils.deleteRecursively(buildCachePath);
|
FileSystemUtils.deleteRecursively(cachePath);
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
// ignore
|
// ignore
|
||||||
|
|
|
@ -443,9 +443,9 @@ class BuildImageTests extends AbstractArchiveIntegrationTests {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void cleanupCache(Path buildCachePath) {
|
private static void cleanupCache(Path cachePath) {
|
||||||
try {
|
try {
|
||||||
FileSystemUtils.deleteRecursively(buildCachePath);
|
FileSystemUtils.deleteRecursively(cachePath);
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
// ignore
|
// ignore
|
||||||
|
|
Loading…
Reference in New Issue