Fix release script distribution check

Update `BintrayService.isDistributionComplete` to use unpublished
artifacts.
pull/26228/head
Phillip Webb 4 years ago
parent a2d87678df
commit d87c437862

@ -97,7 +97,7 @@ public class BintrayService {
public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requiredDigests, Duration timeout,
Duration pollInterval) {
logger.debug("Checking if distribution is complete");
RequestEntity<Void> request = getPackageFilesRequest(releaseInfo, 0);
RequestEntity<Void> request = getPackageFilesRequest(releaseInfo, 1);
try {
waitAtMost(timeout).with().pollDelay(Duration.ZERO).pollInterval(pollInterval).until(() -> {
logger.debug("Checking Bintray");

@ -77,9 +77,9 @@ class BintrayServiceTests {
@Test
void isDistributionComplete() throws Exception {
setupGetPackageFiles(0, "no-package-files.json");
setupGetPackageFiles(0, "some-package-files.json");
setupGetPackageFiles(0, "all-package-files.json");
setupGetPackageFiles(1, "no-package-files.json");
setupGetPackageFiles(1, "some-package-files.json");
setupGetPackageFiles(1, "all-package-files.json");
Set<String> digests = new LinkedHashSet<>();
digests.add("602e20176706d3cc7535f01ffdbe91b270ae5012");
digests.add("602e20176706d3cc7535f01ffdbe91b270ae5013");

Loading…
Cancel
Save