Skip to content

Commit

Permalink
Delete temporary openshift files
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand authored and holly-cummins committed Feb 8, 2024
1 parent 4e63226 commit f59ba76
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,12 @@ public static void createContainerImage(KubernetesClientBuilder kubernetesClient

applyOpenshiftResources(openShiftClient, buildResources);
openshiftBuild(buildResources, tar, openshiftConfig, kubernetesClientBuilder);
} finally {
try {
tar.delete();
} catch (Exception e) {
LOG.warn("Unable to delete temporary file " + tar.toPath().toAbsolutePath(), e);
}
}
}

Expand Down

0 comments on commit f59ba76

Please sign in to comment.