Skip to content

Update urls #1612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/update-distro-download-page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ do
done
echo '</ul>' >> $downloads_html
cat ./$downloads_html
aws s3 mv ./$downloads_html s3://${s3_bucket}/${build_type}/STS5/ --no-progress
aws s3 mv ./$downloads_html s3://${s3_bucket}/${build_type}/ --no-progress
28 changes: 14 additions & 14 deletions .github/workflows/aggregate-distro-update-sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
CLOUDFLARE_CACHE_TOKEN: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }}
run: |
echo "S3 Aggregate Update Sites Creation..."
dirs=`aws s3 ls s3://${AWS_S3_BUCKET}/release/TOOLS/sts4/update/${{ inputs.version }}/`
dirs=`aws s3 ls s3://${AWS_S3_BUCKET}/release/update/${{ inputs.version }}/`
echo "${dirs}"
pattern='^e[0-9]+.[0-9]+/$'
invalid_urls=""
Expand All @@ -60,25 +60,25 @@ jobs:
if [[ "$dir" =~ $pattern ]]; then
echo "Found ${dir}"
dir_name=${dir:0:-1}
site_url="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/${{ inputs.version }}/${dir_name}"
site_url="${DOWNLOAD_URL_ROOT}/release/update/${{ inputs.version }}/${dir_name}"
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url $dir_name
cat ./compositeArtifacts.xml
cat ./compositeContent.xml
if [[ ${dir_name} == ${{ inputs.latest }} ]]; then
aws s3 cp ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/latest/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/latest/compositeArtifacts.xml "
aws s3 cp ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/latest/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/latest/compositeContent.xml "
aws s3 cp ./p2.index s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/latest/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/latest/p2.index "
aws s3 cp ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/compositeArtifacts.xml "
aws s3 cp ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/compositeContent.xml "
aws s3 cp ./p2.index s3://${AWS_S3_BUCKET}/release/update/latest/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/latest/p2.index "
echo "TODO: Purge Cache"
fi
aws s3 mv ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/${dir} --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/${dir_name}/compositeArtifacts.xml "
aws s3 mv ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/${dir} --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/${dir_name}/compositeContent.xml "
aws s3 mv ./p2.index s3://${AWS_S3_BUCKET}/release/TOOLS/sts5/update/${dir} --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5/update/${dir_name}/p2.index "
aws s3 mv ./compositeArtifacts.xml s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/compositeArtifacts.xml "
aws s3 mv ./compositeContent.xml s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/compositeContent.xml "
aws s3 mv ./p2.index s3://${AWS_S3_BUCKET}/release/update/${dir} --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/update/${dir_name}/p2.index "
fi
done
echo "invalid_urls=$invalid_urls" >> $GITHUB_OUTPUT
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/aggregate-ls-extensions-update-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ jobs:
run: |
echo "S3 Aggregate Update Sites Creation..."
invalid_urls=""
site_url="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5-language-server-integrations/${{ inputs.version }}"
site_url="${DOWNLOAD_URL_ROOT}/release/language-server-integrations/${{ inputs.version }}"
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url
cat ./compositeArtifacts.xml
cat ./compositeContent.xml
aws s3 cp ./compositeArtifacts.xml s3://$AWS_S3_BUCKET/release/TOOLS/sts5-language-server-integrations/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5-language-server-integrations/compositeArtifacts.xml "
aws s3 cp ./compositeContent.xml s3://$AWS_S3_BUCKET/release/TOOLS/sts5-language-server-integrations/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5-language-server-integrations/compositeContent.xml "
aws s3 cp ./p2.index s3://$AWS_S3_BUCKET/release/TOOLS/sts5-language-server-integrations/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/TOOLS/sts5-language-server-integrations/p2.index"
aws s3 cp ./compositeArtifacts.xml s3://$AWS_S3_BUCKET/release/language-server-integrations/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/language-server-integrations/compositeArtifacts.xml "
aws s3 cp ./compositeContent.xml s3://$AWS_S3_BUCKET/release/language-server-integrations/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/language-server-integrations/compositeContent.xml "
aws s3 cp ./p2.index s3://$AWS_S3_BUCKET/release/language-server-integrations/ --checksum-algorithm CRC32
invalid_urls+="${DOWNLOAD_URL_ROOT}/release/language-server-integrations/p2.index"
echo "invalid_urls=$invalid_urls" >> $GITHUB_OUTPUT
- uses: ./.github/actions/cloudflare-purge
name: Invalidate URLs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/backup-eclipse-releases-to-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ jobs:
- name: Copy from S3 to GCP
run: |
echo "Copying Eclipse LS extensions ${{ inputs.ls_version }} to GCP..."
url_path=spring-tools/release/TOOLS/sts4-language-server-integrations/${{ inputs.ls_version }}
url_path=spring-tools/release/language-server-integrations/${{ inputs.ls_version }}
gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/$url_path --recursive

echo "Copying Eclipse Distro P2 repos ${{ inputs.release_version }} to GCP..."
url_path=spring-tools/release/TOOLS/sts4/update/${{ inputs.release_version }}
url_path=spring-tools/release/update/${{ inputs.release_version }}
gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/$url_path --recursive

echo "Copying Eclipse Distros ${{ inputs.release_version }} to GCP..."
url_path=spring-tools/release/STS4/${{ inputs.release_version }}/dist
url_path=spring-tools/release/dist/${{ inputs.release_version }}
gcloud storage cp s3://$AWS_S3_BUCKET/$url_path $GCP_BUCKET/$url_path --recursive
16 changes: 8 additions & 8 deletions .github/workflows/eclipse-ls-extensions-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,21 @@ jobs:
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg_keyname: ${{ secrets.GPG_KEYID }}
run: |
sts_ls_version=${{ inputs.sts-language-servers-version }}
sts_ls_version_param=""
if ! [[ -z ${sts_ls_version} ]]; then
sts_ls_version_param="-Ddist.version=${sts_ls_version}"
fi
cd eclipse-language-servers
if command -v xvfb-run ; then
xvfb-run ./mvnw --batch-mode clean install -P${{ inputs.eclipse_profile }} -P${{ inputs.build_type }} $sts_ls_version_param -Pgitactions -Pgpg.sign -Dmaven.test.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Dtycho.localArtifacts=ignore
xvfb-run ./mvnw --batch-mode clean install -P${{ inputs.eclipse_profile }} -P${{ inputs.build_type }} -Pgitactions -Pgpg.sign -Dmaven.test.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Dtycho.localArtifacts=ignore
else
./mvnw --batch-mode clean install -P${{ inputs.eclipse_profile }} -P${{ inputs.build_type }} $sts_ls_version_param -Pgitactions -Pgpg.sign -Dmaven.test.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Dtycho.localArtifacts=ignore
./mvnw --batch-mode clean install -P${{ inputs.eclipse_profile }} -P${{ inputs.build_type }} -Pgitactions -Pgpg.sign -Dmaven.test.skip=true -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Dtycho.localArtifacts=ignore
fi
- name: Upload P2 Repo to S3
id: upload-p2
run: |
p2_path=`cat ${{ github.workspace }}/eclipse-language-servers/org.springframework.tooling.ls.integration.repository/target/s3-p2-repo-dist-path.txt`
sts_ls_version=${{ inputs.sts-language-servers-version }}
if [[ -z ${sts_ls_version} ]]; then
p2_path=${{ inputs.build_type }}/language-server-integrations
else
p2_path=${{ inputs.build_type }}/language-server-integrations/$sts_ls_version
fi
echo "p2_path=$p2_path" >> $GITHUB_OUTPUT
echo "P2 path: ${p2_path}"
aws s3 rm s3://$AWS_S3_BUCKET/${p2_path}/ --recursive
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gen-nighly-downloads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
steps:
- name: Update Nightly Distro Downloads page
run: |
dist_path="snapshot/STS4/nightly/dist/e4.32"
dist_path="snapshot/dist/e4.32"
s3_url=s3://$AWS_S3_BUCKET/${dist_path}/
downloads_html="sts4-nightly-e4.32.html"
downloads_html="sts-nightly-e4.32.html"
files=`aws s3 cp ${s3_url} . --recursive --exclude "*" --include "spring-tools-for-eclipse*.zip" --include "spring-tools-for-eclipse*.dmg" --include "spring-tools-for-eclipse*.self-extracting.jar" --include "spring-tools-for-eclipse*.tar.gz" --exclude "*/*" --dryrun`
echo '<ul>' >> $downloads_html
s3_url_prefix="s3://${AWS_S3_BUCKET}"
Expand All @@ -34,7 +34,7 @@ jobs:
done
echo '</ul>' >> $downloads_html
cat ./$downloads_html
aws s3 mv ./$downloads_html s3://$AWS_S3_BUCKET/snapshot/STS4/ --dryrun
aws s3 mv ./$downloads_html s3://$AWS_S3_BUCKET/snapshot/ --dryrun
files=`aws s3 ls ${s3_url}`
for file in $files
do
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/gh-hosted-eclipse-distro-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
default: 'snapshot'
type: string
sts-language-servers-version:
description: version of sts4 ls extensions
description: version of sts ls extensions
required: false
type: string
p2-qualifier:
Expand Down Expand Up @@ -103,8 +103,20 @@ jobs:
- name: Store S3 Paths
id: s3-paths
run: |
dist_path=`cat ${{ github.workspace }}/eclipse-distribution/org.springframework.boot.ide.product.${{ inputs.eclipse_profile }}/target/s3-dist-path.txt`
p2_path=`cat ${{ github.workspace }}/eclipse-distribution/org.springframework.boot.ide.product.${{ inputs.eclipse_profile }}/target/s3-p2-repo-dist-path.txt`
eclipse_profile=${{ inputs.eclipse_profile }}
eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
build_type=${{ inputs.build_type }}
if [[ "${build_type}" == "snapshot" ]]; then
dist_path=${{ inputs.build_type }}/dist/$eclipse_version
p2_path=${{ inputs.build_type }}/update/$eclipse_version
else
p2_qualifier=${{ inputs.p2-qualifier }}
if ! [[ -z ${p2_qualifier} ]]; then
version_segment=${{ steps.project-version.outputs.version }}.$p2_qualifier
fi
dist_path=${{ inputs.build_type }}/dist/$version_segment/$eclipse_version
p2_path=${{ inputs.build_type }}/update/$version_segment/$eclipse_version
fi
echo "dist_path=$dist_path" >> $GITHUB_OUTPUT
echo "p2_path=$p2_path" >> $GITHUB_OUTPUT
- name: Upload P2 Repo Build Artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ jobs:
echo `${{ github.workspace }}/.github/scripts/gen-vscode-link-bullet.sh vscode-spring-cli "Spring CLI" $DOWNLOAD_URL_ROOT` >> $downloads_html
echo '</ul>' >> $downloads_html
cat ./$downloads_html
aws s3 mv ./$downloads_html s3://$AWS_S3_BUCKET/snapshot/STS5/vscode-extensions/ --no-progress --checksum-algorithm CRC32
aws s3 mv ./$downloads_html s3://$AWS_S3_BUCKET/snapshot/vscode-extensions/ --no-progress --checksum-algorithm CRC32

12 changes: 6 additions & 6 deletions .github/workflows/upload-nightly-downloads-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ jobs:
run: |
echo "Removing old nightly-distributions.html from s3..."

aws s3 rm s3://$AWS_S3_BUCKET/snapshot/STS5/nightly-distributions.html --debug --cli-connect-timeout 60
aws s3 rm s3://$AWS_S3_BUCKET/snapshot/STS5/stylesheet.css --debug --cli-connect-timeout 60
aws s3 rm s3://$AWS_S3_BUCKET/snapshot/STS5/jquery-2.0.3.min.js --debug --cli-connect-timeout 60
aws s3 rm s3://$AWS_S3_BUCKET/snapshot/nightly-distributions.html --debug --cli-connect-timeout 60
aws s3 rm s3://$AWS_S3_BUCKET/snapshot/stylesheet.css --debug --cli-connect-timeout 60
aws s3 rm s3://$AWS_S3_BUCKET/snapshot/jquery-2.0.3.min.js --debug --cli-connect-timeout 60

aws s3 rm s3://$AWS_S3_BUCKET/snapshot/STS4/nightly-distributions.html --debug --cli-connect-timeout 60
aws s3 rm s3://$AWS_S3_BUCKET/snapshot/STS4/stylesheet.css --debug --cli-connect-timeout 60
aws s3 rm s3://$AWS_S3_BUCKET/snapshot/STS4/jquery-2.0.3.min.js --debug --cli-connect-timeout 60

echo "Uploading new nightly-distributions.html to s3..."

aws s3 cp ./eclipse-distribution/common/html/nightly-distributions.html s3://$AWS_S3_BUCKET/snapshot/STS5/nightly-distributions.html --no-progress --checksum-algorithm CRC32
aws s3 cp ./eclipse-distribution/common/html/stylesheet.css s3://$AWS_S3_BUCKET/snapshot/STS5/stylesheet.css --no-progress --checksum-algorithm CRC32
aws s3 cp ./eclipse-distribution/common/html/jquery-2.0.3.min.js s3://$AWS_S3_BUCKET/snapshot/STS5/jquery-2.0.3.min.js --no-progress --checksum-algorithm CRC32
aws s3 cp ./eclipse-distribution/common/html/nightly-distributions.html s3://$AWS_S3_BUCKET/snapshot/nightly-distributions.html --no-progress --checksum-algorithm CRC32
aws s3 cp ./eclipse-distribution/common/html/stylesheet.css s3://$AWS_S3_BUCKET/snapshot/stylesheet.css --no-progress --checksum-algorithm CRC32
aws s3 cp ./eclipse-distribution/common/html/jquery-2.0.3.min.js s3://$AWS_S3_BUCKET/snapshot/jquery-2.0.3.min.js --no-progress --checksum-algorithm CRC32

aws s3 cp ./eclipse-distribution/common/html/nightly-distributions-4.html s3://$AWS_S3_BUCKET/snapshot/STS4/nightly-distributions.html --no-progress --checksum-algorithm CRC32
aws s3 cp ./eclipse-distribution/common/html/stylesheet.css s3://$AWS_S3_BUCKET/snapshot/STS4/stylesheet.css --no-progress --checksum-algorithm CRC32
Expand Down
16 changes: 8 additions & 8 deletions eclipse-distribution/common/html/nightly-distributions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>

<head>
<title>Spring Tools 5 - Internal CI builds</title>
<title>Spring Tools - Internal CI builds</title>
<link rel="shortcut icon" type="image/x-icon" href="https://www.springsource.org/sites/all/themes/s2org11/favicon.ico"/>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
Expand All @@ -13,28 +13,28 @@

<div style="margin:40px;">

<h1>Spring Tools 5 - Internal CI builds</h1>
<h1>Spring Tools - Internal CI builds</h1>

<h2>Eclipse p2 repositories</h2>

<p>Note: please do NOT use your browser to access these p2 repositories directly, there is no web index content being served.
Instead add them to the available update sites in your Eclipse/STS preferences or paste them into the "Install New Software" dialog.
Instead, add them to the available update sites in your Eclipse preferences or paste them into the "Install New Software" dialog.
</p>

<p><b>STS5 Distributions:</b>
<ul>
<li>for Eclipse 2025-09 (4.37): <a href="https://cdn.spring.io/spring-tools/snapshot/TOOLS/sts5/nightly/e4.37">https://cdn.spring.io/spring-tools/snapshot/TOOLS/sts5/nightly/e4.37</a></li>
<li>for Eclipse 2025-06 (4.36): <a href="https://cdn.spring.io/spring-tools/snapshot/TOOLS/sts5/nightly/e4.36">https://cdn.spring.io/spring-tools/snapshot/TOOLS/sts5/nightly/e4.36</a></li>
<li>for Eclipse 2025-03 (4.35): <a href="https://cdn.spring.io/spring-tools/snapshot/TOOLS/sts5/nightly/e4.35">https://cdn.spring.io/spring-tools/snapshot/TOOLS/sts5/nightly/e4.35</a></li>
<li>for Eclipse 2025-09 (4.37): <a href="https://cdn.spring.io/spring-tools/snapshot/update/e4.37">https://cdn.spring.io/spring-tools/snapshot/update/e4.37</a></li>
<li>for Eclipse 2025-06 (4.36): <a href="https://cdn.spring.io/spring-tools/snapshot/update/e4.36">https://cdn.spring.io/spring-tools/snapshot/update/e4.36</a></li>
<li>for Eclipse 2025-03 (4.35): <a href="https://cdn.spring.io/spring-tools/snapshot/update/e4.35">https://cdn.spring.io/spring-tools/snapshot/update/e4.35</a></li>
</ul>
</p>

<p><b>STS5 language server extensions</b> (this repository is meant to be used to ship updates of the language server extensions to existing STS4 installations. In production, the release version of this repository is used.)
<p><b>Spring Tools language server extensions</b> (this repository is meant to be used to ship updates of the language server extensions to existing Spring Tools installations. In production, the release version of this repository is used.)
</p>

<p>
<ul>
<li><a href="https://cdn.spring.io/spring-tools/snapshot/TOOLS/sts5-language-server-integrations/nightly">https://cdn.spring.io/spring-tools/snapshot/TOOLS/sts5-language-server-integrations/nightly</a></li>
<li><a href="https://cdn.spring.io/spring-tools/snapshot/language-server-integrations">https://cdn.spring.io/spring-tools/snapshot/language-server-integrations</a></li>
</ul>
</p>

Expand Down
Loading
Loading