File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ groupId=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].i
9
9
version=$( cat artifactory-repo/build-info.json | jq -r ' .buildInfo.modules[0].id' | sed ' s/.*:.*:\(.*\)/\1/' )
10
10
11
11
echo " Publishing ${buildName} /${buildNumber} to Eclipse Update Site"
12
- curl \
12
+ # We need to push twice for some reason otherwise we get out of date versions
13
+ for i in {1..2}; do
14
+ curl \
13
15
-s \
14
16
--connect-timeout 240 \
15
17
--max-time 2700 \
@@ -18,11 +20,8 @@ curl \
18
20
-X PUT \
19
21
-T " artifactory-repo/io/spring/javaformat/io.spring.javaformat.eclipse.site/${version} /io.spring.javaformat.eclipse.site-${version} .zip" \
20
22
" 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; }
21
-
22
- # Getting the released versions can be flaky, try a few times
23
- for i in {1..2}; do
24
23
releasedVersions=$( curl -f -X GET https://api.bintray.com/packages/spring/javaformat-eclipse/update-site | jq -r ' .versions[]' )
25
- sleep 10
24
+ sleep 30
26
25
done
27
26
28
27
respositories=" "
You can’t perform that action at this time.
0 commit comments