diff --git a/.github/scripts/update-distro-download-page.sh b/.github/scripts/update-distro-download-page.sh
index 67807e6007..d5df2d10e8 100755
--- a/.github/scripts/update-distro-download-page.sh
+++ b/.github/scripts/update-distro-download-page.sh
@@ -3,9 +3,11 @@ set -e
dist_path=$1
eclipse_version=$2
build_type=$3
+s3_bucket=$4
+download_url_root=$5
# Akamai tools-spring-io bucket
-s3_url=s3://tools-spring-io/${dist_path}
+s3_url=s3://${s3_bucket}/${dist_path}
downloads_html="sts4-nightly-${eclipse_version}.html"
files=`aws s3 cp ${s3_url} . --recursive --exclude "*" --include "spring-tool-suite-4*.zip" --include "spring-tool-suite-4*.dmg" --include "spring-tool-suite-4*.self-extracting.jar" --include "spring-tool-suite-4*.tar.gz" --exclude "*/*" --dryrun`
rm -f ./${downloads_html}
@@ -13,11 +15,11 @@ echo '
' >> $downloads_html
for file in $files
do
if [[ "$file" =~ ^"s3://tools-spring-io" ]]; then
- download_url=https://cdn.spring.io/spring-tools${file:20} #
+ download_url=${download_url_root}${file:20} #
filename=${file:${#s3_url}+1}
echo ' - '${filename}'
' >> $downloads_html
fi
done
echo '
' >> $downloads_html
cat ./$downloads_html
-aws s3 mv ./$downloads_html s3://tools-spring-io/${build_type}/STS4/ --no-progress
+aws s3 mv ./$downloads_html s3://${s3_bucket}/${build_type}/STS4/ --no-progress
diff --git a/.github/workflows/gh-hosted-eclipse-distro-build.yml b/.github/workflows/gh-hosted-eclipse-distro-build.yml
index 8fcd477292..d807470d54 100644
--- a/.github/workflows/gh-hosted-eclipse-distro-build.yml
+++ b/.github/workflows/gh-hosted-eclipse-distro-build.yml
@@ -130,7 +130,7 @@ jobs:
run: |
eclipse_profile=${{ inputs.eclipse_profile }}
eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
- ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh ${{ steps.s3-paths.outputs.dist_path }} $eclipse_version ${{ inputs.build_type }}
+ ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh ${{ steps.s3-paths.outputs.dist_path }} $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT
- name: Upload Build Artifacts for Signing
run: |
echo "Uploading Win Zips and OSX tar.gz to S3 for signing..."
@@ -184,7 +184,7 @@ jobs:
dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
eclipse_profile=${{ inputs.eclipse_profile }}
eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
- ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }}
+ ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT
- name: Cleanup
if: ${{ always() }}
env:
@@ -280,7 +280,7 @@ jobs:
dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
eclipse_profile=${{ inputs.eclipse_profile }}
eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
- ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }}
+ ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT
- name: Cleanup
if: ${{ always() }}
run: |
diff --git a/eclipse-distribution/pom.xml b/eclipse-distribution/pom.xml
index 28b54bb2e1..5a6ae08946 100644
--- a/eclipse-distribution/pom.xml
+++ b/eclipse-distribution/pom.xml
@@ -76,7 +76,7 @@
nightly
${dist.type}/${dist.key}/${dist.project}/${dist.pathpostfix}
- https://cdn.spring.io/spring-tools/${dist.type}/TOOLS/sts4-language-server-integrations/${sts4-language-servers-version}
+ https://cdn-test.spring.io/spring-tools/${dist.type}/TOOLS/sts4-language-server-integrations/${sts4-language-servers-version}
4.0.8
UTF-8