Commit d87c4378 authored by Phillip Webb's avatar Phillip Webb

Fix release script distribution check

Update `BintrayService.isDistributionComplete` to use unpublished
artifacts.
parent a2d87678
...@@ -97,7 +97,7 @@ public class BintrayService { ...@@ -97,7 +97,7 @@ public class BintrayService {
public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requiredDigests, Duration timeout, public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requiredDigests, Duration timeout,
Duration pollInterval) { Duration pollInterval) {
logger.debug("Checking if distribution is complete"); logger.debug("Checking if distribution is complete");
RequestEntity<Void> request = getPackageFilesRequest(releaseInfo, 0); RequestEntity<Void> request = getPackageFilesRequest(releaseInfo, 1);
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");
......
...@@ -77,9 +77,9 @@ class BintrayServiceTests { ...@@ -77,9 +77,9 @@ class BintrayServiceTests {
@Test @Test
void isDistributionComplete() throws Exception { void isDistributionComplete() throws Exception {
setupGetPackageFiles(0, "no-package-files.json"); setupGetPackageFiles(1, "no-package-files.json");
setupGetPackageFiles(0, "some-package-files.json"); setupGetPackageFiles(1, "some-package-files.json");
setupGetPackageFiles(0, "all-package-files.json"); setupGetPackageFiles(1, "all-package-files.json");
Set<String> digests = new LinkedHashSet<>(); Set<String> digests = new LinkedHashSet<>();
digests.add("602e20176706d3cc7535f01ffdbe91b270ae5012"); digests.add("602e20176706d3cc7535f01ffdbe91b270ae5012");
digests.add("602e20176706d3cc7535f01ffdbe91b270ae5013"); digests.add("602e20176706d3cc7535f01ffdbe91b270ae5013");
......
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