Skip to content

Commit d69c35a

Browse files
committed
Deal with 404 response when checking for artifacts
1 parent 53296cd commit d69c35a

File tree

1 file changed

+7
-2
lines changed
  • ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray

1 file changed

+7
-2
lines changed

ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray/BintrayService.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requi
101101
try {
102102
waitAtMost(timeout).with().pollDelay(Duration.ZERO).pollInterval(pollInterval).until(() -> {
103103
logger.debug("Checking bintray");
104-
PackageFile[] published = this.restTemplate.exchange(request, PackageFile[].class).getBody();
105-
return hasPublishedAll(published, requiredDigests);
104+
try {
105+
PackageFile[] published = this.restTemplate.exchange(request, PackageFile[].class).getBody();
106+
return hasPublishedAll(published, requiredDigests);
107+
}
108+
catch (HttpClientErrorException.NotFound ex) {
109+
return false;
110+
}
106111
});
107112
}
108113
catch (ConditionTimeoutException ex) {

0 commit comments

Comments
 (0)