Skip to content

Commit 840aed6

Browse files
committed
Attempt to get versions several times
Update the publish eclipse site CI script so that the get revisions call is attempted multiple times. The initial call always seems to return stale data for some reason. See gh-125
1 parent a6c6319 commit 840aed6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/scripts/publish-eclipse-update-site.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ curl \
1919
-T "artifactory-repo/io/spring/javaformat/io.spring.javaformat.eclipse.site/${version}/io.spring.javaformat.eclipse.site-${version}.zip" \
2020
"https://api.bintray.com/content/spring/javaformat-eclipse/update-site/${version}/${version}/site.zip?explode=1&publish=1" > /dev/null || { echo "Failed to publish" >&2; exit 1; }
2121

22-
releasedVersions=$( curl -f -X GET https://api.bintray.com/packages/spring/javaformat-eclipse/update-site | jq -r '.versions[]' )
22+
# Getting the released versions can be flaky, try a few times
23+
for i in {1..2}; do
24+
releasedVersions=$( curl -f -X GET https://api.bintray.com/packages/spring/javaformat-eclipse/update-site | jq -r '.versions[]' )
25+
sleep 10
26+
done
27+
2328
respositories=""
2429
while read -r releasedVersion; do
2530
echo "Adding repository for ${releasedVersion}"

0 commit comments

Comments
 (0)