Commit d69c35a1 authored by Phillip Webb's avatar Phillip Webb

Deal with 404 response when checking for artifacts

parent 53296cd1
...@@ -101,8 +101,13 @@ public class BintrayService { ...@@ -101,8 +101,13 @@ public class BintrayService {
try { try {
waitAtMost(timeout).with().pollDelay(Duration.ZERO).pollInterval(pollInterval).until(() -> { waitAtMost(timeout).with().pollDelay(Duration.ZERO).pollInterval(pollInterval).until(() -> {
logger.debug("Checking bintray"); logger.debug("Checking bintray");
PackageFile[] published = this.restTemplate.exchange(request, PackageFile[].class).getBody(); try {
return hasPublishedAll(published, requiredDigests); PackageFile[] published = this.restTemplate.exchange(request, PackageFile[].class).getBody();
return hasPublishedAll(published, requiredDigests);
}
catch (HttpClientErrorException.NotFound ex) {
return false;
}
}); });
} }
catch (ConditionTimeoutException ex) { catch (ConditionTimeoutException ex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment