@@ -31,19 +31,16 @@ trap cleanup EXIT
3131
3232cd " $WORK_DIR " || exit
3333
34- bin_file=trino-cli-${VERSION} -executable.jar
35-
36- echo " Downloading Trino (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37- curl --fail -LO --progress-bar " https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION} /${bin_file} "
38- curl --fail -LO --progress-bar " https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION} /${bin_file} .asc"
39- curl --fail -LO --progress-bar " https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION} /${bin_file} .sha1"
40-
41- # It is probably redundant to check both the checksum and the signature but it's cheap and why not
42- echo " Validating SHA1 Checksum"
43- if ! (sha1sum " ${bin_file} " | cut -d " " -f 1 | diff -Z - " ${bin_file} .sha1" ); then
44- echo " ERROR: The SHA1 sum does not match"
45- exit 1
46- fi
34+ echo " Downloading Trino"
35+ # Since Trino version 477, the CLI is only available as a GitHub release and not on Maven repository anymore.
36+ curl --fail -LO --progress-bar " https://github.com/trinodb/trino/releases/download/${VERSION} /trino-cli-${VERSION} "
37+
38+ # The GitHub releases don't provide SHA1 checksums. That's why we currently don't validate the checksum.
39+ # echo "Validating SHA1 Checksum"
40+ # if ! (sha1sum "${bin_file}" | cut -d " " -f 1 | diff -Z - "${bin_file}.sha1"); then
41+ # echo "ERROR: The SHA1 sum does not match"
42+ # exit 1
43+ # fi
4744
4845# echo "Adding pinned public key for signature"
4946# # We lock the public key here until trino has a better workflow for signing
8986
9087echo " Uploading everything to Nexus"
9188EXIT_STATUS=0
92- curl --fail -o /dev/null --progress-bar -u " $NEXUS_USER :$NEXUS_PASSWORD " --upload-file " ${bin_file} " ' https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
93- curl --fail -o /dev/null --progress-bar -u " $NEXUS_USER :$NEXUS_PASSWORD " --upload-file " ${bin_file} .asc" ' https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
94- curl --fail -o /dev/null --progress-bar -u " $NEXUS_USER :$NEXUS_PASSWORD " --upload-file " ${bin_file} .sha1" ' https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
89+ curl --fail -o /dev/null --progress-bar -u " $NEXUS_USER :$NEXUS_PASSWORD " --upload-file " trino-cli-${VERSION} " ' https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
9590
9691if [ $EXIT_STATUS -ne 0 ]; then
9792 echo " ERROR: Upload failed"
0 commit comments