Deal with 404 response when checking for artifacts
This commit is contained in:
parent
53296cd161
commit
d69c35a1db
|
@ -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");
|
||||||
|
try {
|
||||||
PackageFile[] published = this.restTemplate.exchange(request, PackageFile[].class).getBody();
|
PackageFile[] published = this.restTemplate.exchange(request, PackageFile[].class).getBody();
|
||||||
return hasPublishedAll(published, requiredDigests);
|
return hasPublishedAll(published, requiredDigests);
|
||||||
|
}
|
||||||
|
catch (HttpClientErrorException.NotFound ex) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
catch (ConditionTimeoutException ex) {
|
catch (ConditionTimeoutException ex) {
|
||||||
|
|
Loading…
Reference in New Issue