Skip to content

Commit

Permalink
Merge pull request #34122 from iocanel/openshift-wait-for-tags
Browse files Browse the repository at this point in the history
Do not fail the build if wait for tags fails
  • Loading branch information
gsmet authored Jun 20, 2023
2 parents 3bb7820 + ee7648e commit 7807020
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,13 @@ private static void applyOpenshiftResources(OpenShiftClient client, List<HasMeta
deployResource(client, i);
LOG.info("Applied: " + i.getKind() + " " + i.getMetadata().getName());
}
OpenshiftUtils.waitForImageStreamTags(client, buildResources, 2, TimeUnit.MINUTES);

try {
OpenshiftUtils.waitForImageStreamTags(client, buildResources, 2, TimeUnit.MINUTES);
} catch (KubernetesClientException e) {
//User may not have permission to get / list `ImageStreamTag` or this step may fail for any reason.
//As this is not an integral part of the build we should catch and log.
LOG.debug("Waiting for ImageStream tag failed. Ignoring.");
}
} catch (KubernetesClientException e) {
KubernetesClientErrorHandler.handle(e);
}
Expand Down

0 comments on commit 7807020

Please sign in to comment.