Skip to content

Commit cbb5712

Browse files
NickLarsenNZTechassi
andauthoredApr 24, 2025··
chore(⏲): Use fast download mirrors (#1061)
* chore: Use fast download mirrors * chore: Show download progress bar * chore: Improve gpg key warning message * chore: Show upload progress bar Thanks to <https://bashupload.com/how_to_upload_progress_curl> * Apply suggestions from code review Co-authored-by: Techassi <[email protected]> * chore: Make output more consistent --------- Co-authored-by: Techassi <[email protected]>
1 parent 54ce0e8 commit cbb5712

24 files changed

+205
-157
lines changed
 

‎.scripts/upload_new_async-profiler_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ for arch in "${ARCHITECTURES[@]}"; do
4343
file=async-profiler-$VERSION-linux-$arch.tar.gz
4444

4545
echo "Downloading $file from github.com"
46-
curl --fail -LOs "https://github.com/async-profiler/async-profiler/releases/download/v$VERSION/$file"
46+
curl --fail -LO --progress-bar "https://github.com/async-profiler/async-profiler/releases/download/v$VERSION/$file"
4747

4848
echo "Uploading $file to Nexus"
49-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" \
49+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" \
5050
--upload-file "$file" \
5151
'https://repo.stackable.tech/repository/packages/async-profiler/'
5252
done

‎.scripts/upload_new_inotify-tools_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ for arch in "${ARCHITECTURES[@]}"; do
4949
file=inotify-tools-$VERSION.$arch.rpm
5050

5151
echo "Downloading $file from dl.fedoraproject.org"
52-
curl --fail -LOs "https://dl.fedoraproject.org/pub/epel/$EPEL_VERSION/Everything/$arch/Packages/i/$file"
52+
curl --fail -LO --progress-bar "https://dl.fedoraproject.org/pub/epel/$EPEL_VERSION/Everything/$arch/Packages/i/$file"
5353

5454
echo "Uploading $file to Nexus"
55-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" \
55+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" \
5656
--upload-file "$file" \
5757
'https://repo.stackable.tech/repository/packages/inotify-tools/'
5858
done

‎.scripts/upload_new_jmx_exporter_version.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ JAR_FILE="jmx_prometheus_javaagent-$VERSION.jar"
3535
SUM_FILE="$JAR_FILE.sha256"
3636

3737
echo "Downloading JMX Exporter"
38-
curl --fail -LOs "https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$JAR_FILE"
39-
curl --fail -LOs "https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$SUM_FILE"
38+
curl --fail -LO --progress-bar "https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$JAR_FILE"
39+
curl --fail -LO --progress-bar "https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$SUM_FILE"
4040

4141
# Check that sha256 sum matches before uploading
4242
sha256sum --check --status "$SUM_FILE" && echo "SHA256 Sum matches"
4343

4444
echo "Uploading to Nexus"
45-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$JAR_FILE" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
46-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$SUM_FILE" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
45+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$JAR_FILE" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
46+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$SUM_FILE" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
4747

4848
echo "Successfully uploaded new version of the JMX Exporter ($VERSION) Jar to Nexus"
4949
echo "https://repo.stackable.tech/service/rest/repository/browse/packages/jmx-exporter/"

‎.scripts/upload_new_kcat_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ echo "Downloading kcat"
3838
curl --fail -Ls -o "kcat-$VERSION.tar.gz" "https://github.com/edenhill/kcat/archive/refs/tags/$VERSION.tar.gz"
3939

4040
echo "Uploading to Nexus"
41-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "kcat-$VERSION.tar.gz" 'https://repo.stackable.tech/repository/packages/kcat/'
41+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "kcat-$VERSION.tar.gz" 'https://repo.stackable.tech/repository/packages/kcat/'
4242

4343

4444
echo "Successfully uploaded new version of kcat ($VERSION) to Nexus"

‎.scripts/upload_new_protoc_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ for arch in "${ARCHITECTURES[@]}"; do
5050
FILE_NAME=$(basename "$DOWNLOAD_URL")
5151

5252
echo "Uploading protoc to Nexus"
53-
if ! curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$FILE_NAME" 'https://repo.stackable.tech/repository/packages/protoc/'; then
53+
if ! curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$FILE_NAME" 'https://repo.stackable.tech/repository/packages/protoc/'; then
5454
echo "Failed to upload protoc to Nexus"
5555
exit 1
5656
fi

‎.scripts/upload_new_tini_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ for arch in "${ARCHITECTURES[@]}"; do
4141
curl --fail -Ls -o "tini-$VERSION-$arch" "https://github.com/krallin/tini/releases/download/v$VERSION/tini-$arch"
4242

4343
echo "Uploading to Nexus"
44-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "tini-$VERSION-$arch" 'https://repo.stackable.tech/repository/packages/tini/'
44+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "tini-$VERSION-$arch" 'https://repo.stackable.tech/repository/packages/tini/'
4545
done
4646

4747
echo "Successfully uploaded new version of TINI ($VERSION) to Nexus"

‎druid/upload_new_druid_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/druid"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/druid"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,10 +38,10 @@ cd "$WORK_DIR" || exit
3338

3439
src_file="apache-druid-${VERSION}-src.tar.gz"
3540

36-
echo "Downloading Druid (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://archive.apache.org/dist/druid/${VERSION}/${src_file}"
38-
curl --fail -LOs "https://archive.apache.org/dist/druid/${VERSION}/${src_file}.asc"
39-
curl --fail -LOs "https://archive.apache.org/dist/druid/${VERSION}/${src_file}.sha512"
41+
echo "Downloading Druid source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/${VERSION}/${src_file}"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/${VERSION}/${src_file}.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/${VERSION}/${src_file}.sha512"
4045

4146
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4247
echo "Validating SHA512 Checksum"
@@ -46,18 +51,18 @@ if ! (sha512sum "${src_file}" | cut -d " " -f 1 | diff -Z - "${src_file}.sha512"
4651
fi
4752

4853
echo "Validating signature"
49-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://www.apache.org/dist/druid/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://archive.apache.org/dist/druid/KEYS | gpg --import")'
50-
5154
if ! (gpg --verify "${src_file}.asc" "${src_file}" 2> /dev/null); then
5255
echo "ERROR: The signature could not be verified"
56+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
57+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5358
exit 1
5459
fi
5560

5661
echo "Uploading everything to Nexus"
5762
EXIT_STATUS=0
58-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
59-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.asc" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
60-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha512" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
63+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
64+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.asc" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
65+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha512" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
6166

6267
if [ $EXIT_STATUS -ne 0 ]; then
6368
echo "ERROR: Upload failed"

‎hadoop/upload_new_hadoop_version.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ cd "$WORK_DIR" || exit
3939
bin_file=hadoop-$VERSION.tar.gz
4040
src_file=hadoop-$VERSION-src.tar.gz
4141

42-
echo "Downloading Hadoop (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
echo "Downloading Hadoop binary (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
4343
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$bin_file"
4444
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$bin_file.asc"
4545
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$bin_file.sha512"
4646

47+
echo "Downloading Hadoop source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
4748
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$src_file"
4849
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$src_file.asc"
4950
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$src_file.sha512"
5051

51-
5252
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
5353
echo "Validating SHA512 Checksums"
5454
if ! (sha512sum --tag "$bin_file" | diff - "$bin_file.sha512" && sha512sum --tag "$src_file" | diff - "$src_file.sha512"); then
@@ -58,22 +58,22 @@ if ! (sha512sum --tag "$bin_file" | diff - "$bin_file.sha512" && sha512sum --tag
5858
fi
5959

6060
echo "Validating signatures"
61-
echo "--> NOTE: Make sure you have downloaded and added the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\")"
62-
6361
if ! (gpg --verify "$bin_file.asc" "$bin_file" 2> /dev/null && gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
6462
echo "ERROR: One of the signatures could not be verified"
63+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
64+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
6565
exit 1
6666
fi
6767

6868
echo "Uploading everything to Nexus"
6969
EXIT_STATUS=0
70-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
71-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
72-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha512" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
70+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
71+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
72+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha512" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
7373

74-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
75-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
76-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
74+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
75+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
76+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
7777

7878
if [ $EXIT_STATUS -ne 0 ]; then
7979
echo "ERROR: Upload failed"

‎hbase/upload_new_hbase-operator-tools_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/hbase"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/hbase"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,11 +38,10 @@ cd "$WORK_DIR" || exit
3338

3439
src_file=hbase-operator-tools-$VERSION-src.tar.gz
3540

36-
echo "Downloading hbase-operator-tools (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://archive.apache.org/dist/hbase/hbase-operator-tools-$VERSION/$src_file"
38-
curl --fail -LOs "https://archive.apache.org/dist/hbase/hbase-operator-tools-$VERSION/$src_file.asc"
39-
curl --fail -LOs "https://archive.apache.org/dist/hbase/hbase-operator-tools-$VERSION/$src_file.sha512"
40-
41+
echo "Downloading hbase-operator-tools source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hbase-operator-tools-$VERSION/$src_file"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hbase-operator-tools-$VERSION/$src_file.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hbase-operator-tools-$VERSION/$src_file.sha512"
4145

4246
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4347
echo "Validating SHA512 Checksums"
@@ -47,19 +51,20 @@ if ! (gpg --print-md SHA512 "$src_file" | diff - "$src_file.sha512"); then
4751
fi
4852

4953
echo "Validating signatures"
50-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://downloads.apache.org/hbase/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://downloads.apache.org/hbase/KEYS | gpg --import")'
5154
if ! (gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5255
echo "ERROR: One of the signatures could not be verified"
56+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
57+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5358
exit 1
5459
fi
5560

5661

5762

5863
echo "Uploading everything to Nexus"
5964
EXIT_STATUS=0
60-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
61-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
62-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
65+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
66+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
67+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
6368

6469

6570
if [ $EXIT_STATUS -ne 0 ]; then

‎hbase/upload_new_hbase_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/hbase"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/hbase"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,11 +38,10 @@ cd "$WORK_DIR" || exit
3338

3439
src_file=hbase-$VERSION-src.tar.gz
3540

36-
echo "Downloading HBase source (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://archive.apache.org/dist/hbase/$VERSION/$src_file"
38-
curl --fail -LOs "https://archive.apache.org/dist/hbase/$VERSION/$src_file.asc"
39-
curl --fail -LOs "https://archive.apache.org/dist/hbase/$VERSION/$src_file.sha512"
40-
41+
echo "Downloading HBase source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file.sha512"
4145

4246
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4347
echo "Validating SHA512 Checksums"
@@ -47,17 +51,18 @@ if ! (gpg --print-md SHA512 "$src_file" | diff - "$src_file.sha512"); then
4751
fi
4852

4953
echo "Validating signatures"
50-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://downloads.apache.org/hbase/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://downloads.apache.org/hbase/KEYS | gpg --import")'
5154
if ! (gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5255
echo "ERROR: One of the signatures could not be verified"
56+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
57+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5358
exit 1
5459
fi
5560

5661
echo "Uploading everything to Nexus"
5762
EXIT_STATUS=0
58-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
59-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
60-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
63+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
64+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
65+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
6166

6267
if [ $EXIT_STATUS -ne 0 ]; then
6368
echo "ERROR: Upload failed"

‎hbase/upload_new_phoenix_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/phoenix"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/phoenix"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,11 +38,10 @@ cd "$WORK_DIR" || exit
3338

3439
src_file=phoenix-$VERSION-src.tar.gz
3540

36-
echo "Downloading phoenix (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://archive.apache.org/dist/phoenix/phoenix-$VERSION/$src_file"
38-
curl --fail -LOs "https://archive.apache.org/dist/phoenix/phoenix-$VERSION/$src_file.asc"
39-
curl --fail -LOs "https://archive.apache.org/dist/phoenix/phoenix-$VERSION/$src_file.sha512"
40-
41+
echo "Downloading phoenix source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/phoenix-$VERSION/$src_file"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/phoenix-$VERSION/$src_file.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/phoenix-$VERSION/$src_file.sha512"
4145

4246
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4347
echo "Validating SHA512 Checksums"
@@ -47,19 +51,20 @@ if ! (gpg --print-md SHA512 "$src_file" | diff - "$src_file.sha512"); then
4751
fi
4852

4953
echo "Validating signatures"
50-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://downloads.apache.org/phoenix/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://downloads.apache.org/phoenix/KEYS | gpg --import")'
5154
if ! (gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5255
echo "ERROR: One of the signatures could not be verified"
56+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
57+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5358
exit 1
5459
fi
5560

5661

5762

5863
echo "Uploading everything to Nexus"
5964
EXIT_STATUS=0
60-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/phoenix/' || EXIT_STATUS=$?
61-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/phoenix/' || EXIT_STATUS=$?
62-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/phoenix/' || EXIT_STATUS=$?
65+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/phoenix/' || EXIT_STATUS=$?
66+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/phoenix/' || EXIT_STATUS=$?
67+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/phoenix/' || EXIT_STATUS=$?
6368

6469

6570
if [ $EXIT_STATUS -ne 0 ]; then

‎hive/upload_new_hive_version.sh

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/hive"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/hive"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -34,16 +39,15 @@ cd "$WORK_DIR" || exit
3439
bin_file="apache-hive-${VERSION}-bin.tar.gz"
3540
src_file="apache-hive-$VERSION-src.tar.gz"
3641

37-
echo "Downloading Hive (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
38-
curl --fail -LOs "https://dlcdn.apache.org/hive/hive-${VERSION}/${bin_file}"
39-
curl --fail -LOs "https://dlcdn.apache.org/hive/hive-${VERSION}/${bin_file}.asc"
40-
curl --fail -LOs "https://dlcdn.apache.org/hive/hive-${VERSION}/${bin_file}.sha256"
41-
42-
echo "Downloading Hive (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
43-
curl --fail -LOs "https://dlcdn.apache.org/hive/hive-${VERSION}/${src_file}"
44-
curl --fail -LOs "https://dlcdn.apache.org/hive/hive-${VERSION}/${src_file}.asc"
45-
curl --fail -LOs "https://dlcdn.apache.org/hive/hive-${VERSION}/${src_file}.sha256"
42+
echo "Downloading Hive binary (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hive-${VERSION}/${bin_file}"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hive-${VERSION}/${bin_file}.asc"
45+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hive-${VERSION}/${bin_file}.sha256"
4646

47+
echo "Downloading Hive source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
48+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hive-${VERSION}/${src_file}"
49+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hive-${VERSION}/${src_file}.asc"
50+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hive-${VERSION}/${src_file}.sha256"
4751

4852
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4953
echo "Validating SHA256 Checksums"
@@ -53,22 +57,22 @@ if ! (sha256sum "${bin_file}" | diff - "${bin_file}.sha256" && sha256sum "${src_
5357
fi
5458

5559
echo "Validating signatures"
56-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://dlcdn.apache.org/hive/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://dlcdn.apache.org/hive/KEYS | gpg --import")'
57-
5860
if ! (gpg --verify "$bin_file.asc" "$bin_file" 2> /dev/null && gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5961
echo "ERROR: Signature could not be verified"
62+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
63+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
6064
exit 1
6165
fi
6266

6367
echo "Uploading everything to Nexus"
6468
EXIT_STATUS=0
65-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
66-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
67-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha256" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
69+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
70+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
71+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha256" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
6872

69-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
70-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
71-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha256" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
73+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
74+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
75+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha256" 'https://repo.stackable.tech/repository/packages/hive/' || EXIT_STATUS=$?
7276

7377

7478
if [ $EXIT_STATUS -ne 0 ]; then

‎kafka/upload_new_kafka_version.sh

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/kafka"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/kafka"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -34,14 +39,15 @@ cd "$WORK_DIR" || exit
3439
bin_file=kafka_2.13-$VERSION.tgz
3540
src_file=kafka-$VERSION-src.tgz
3641

37-
echo "Downloading Kafka (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
38-
curl --fail -LOs "https://archive.apache.org/dist/kafka/$VERSION/$bin_file"
39-
curl --fail -LOs "https://archive.apache.org/dist/kafka/$VERSION/$bin_file.asc"
40-
curl --fail -LOs "https://archive.apache.org/dist/kafka/$VERSION/$bin_file.sha512"
42+
echo "Downloading Kafka binary (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$bin_file"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$bin_file.asc"
45+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$bin_file.sha512"
4146

42-
curl --fail -LOs "https://archive.apache.org/dist/kafka/$VERSION/$src_file"
43-
curl --fail -LOs "https://archive.apache.org/dist/kafka/$VERSION/$src_file.asc"
44-
curl --fail -LOs "https://archive.apache.org/dist/kafka/$VERSION/$src_file.sha512"
47+
echo "Downloading Kafka source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
48+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file"
49+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file.asc"
50+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file.sha512"
4551

4652
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4753
echo "Validating SHA512 Checksum"
@@ -51,22 +57,22 @@ if ! (gpg --print-md SHA512 "$bin_file" | diff - "$bin_file.sha512" && gpg --pri
5157
fi
5258

5359
echo "Validating signatures"
54-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://downloads.apache.org/kafka/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://downloads.apache.org/kafka/KEYS | gpg --import")'
55-
5660
if ! (gpg --verify "$bin_file.asc" "$bin_file" 2> /dev/null && gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5761
echo "ERROR: One of the signatures could not be verified"
62+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
63+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5864
exit 1
5965
fi
6066

6167
echo "Uploading everything to Nexus"
6268
EXIT_STATUS=0
63-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
64-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
65-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha512" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
69+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
70+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
71+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha512" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
6672

67-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
68-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
69-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
73+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
74+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
75+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/kafka/' || EXIT_STATUS=$?
7076

7177
if [ $EXIT_STATUS -ne 0 ]; then
7278
echo "ERROR: Upload failed"

‎nifi/upload_new_nifi_version.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/nifi"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/nifi"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -32,12 +37,11 @@ trap cleanup EXIT
3237
cd "$WORK_DIR" || exit
3338

3439
src_file="nifi-$VERSION-source-release.zip"
35-
download_url="https://archive.apache.org/dist/nifi/${VERSION}"
3640

37-
echo "Downloading NiFi source (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
38-
curl --fail -LOs "${download_url}/${src_file}"
39-
curl --fail -LOs "${download_url}/${src_file}.asc"
40-
curl --fail -LOs "${download_url}/${src_file}.sha512"
41+
echo "Downloading NiFi source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/${src_file}"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/${src_file}.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/${src_file}.sha512"
4145

4246
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4347
echo "Validating SHA512 Checksums"
@@ -51,18 +55,18 @@ if ! (sha512sum "$src_file" | cut -d ' ' -f 1 | diff - <(echo -e "$(<"${src_file
5155
fi
5256

5357
echo "Validating signatures"
54-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://archive.apache.org/dist/nifi/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://archive.apache.org/dist/nifi/KEYS | gpg --import")'
55-
5658
if ! (gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5759
echo "ERROR: One of the signatures could not be verified"
60+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
61+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5862
exit 1
5963
fi
6064

6165
echo "Uploading everything to Nexus"
6266
EXIT_STATUS=0
63-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/nifi/' || EXIT_STATUS=$?
64-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.asc" 'https://repo.stackable.tech/repository/packages/nifi/' || EXIT_STATUS=$?
65-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha512" 'https://repo.stackable.tech/repository/packages/nifi/' || EXIT_STATUS=$?
67+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/nifi/' || EXIT_STATUS=$?
68+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.asc" 'https://repo.stackable.tech/repository/packages/nifi/' || EXIT_STATUS=$?
69+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha512" 'https://repo.stackable.tech/repository/packages/nifi/' || EXIT_STATUS=$?
6670

6771
if [ $EXIT_STATUS -ne 0 ]; then
6872
echo "ERROR: Upload failed"

‎omid/upload_new_omid_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -e
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/phoenix"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/phoenix"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -32,11 +37,10 @@ trap cleanup EXIT
3237
cd "$WORK_DIR" || exit
3338
src_file=phoenix-omid-$VERSION-src.tar.gz
3439

35-
echo "Downloading Omid (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
36-
curl --fail -LOs "https://downloads.apache.org/phoenix/phoenix-omid-${VERSION}/${src_file}"
37-
curl --fail -LOs "https://downloads.apache.org/phoenix/phoenix-omid-$VERSION/$src_file.asc"
38-
curl --fail -LOs "https://downloads.apache.org/phoenix/phoenix-omid-$VERSION/$src_file.sha512"
39-
40+
echo "Downloading Omid source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
41+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/phoenix-omid-${VERSION}/${src_file}"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/phoenix-omid-$VERSION/$src_file.asc"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/phoenix-omid-$VERSION/$src_file.sha512"
4044

4145
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4246
echo "Validating SHA512 Checksums"
@@ -46,17 +50,18 @@ if ! (gpg --print-md SHA512 "$src_file" | diff - "$src_file.sha512"); then
4650
fi
4751

4852
echo "Validating signatures"
49-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://downloads.apache.org/phoenix/KEYS) to GPG: https://www.apache.org/info/verification.html'
5053
if ! (gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5154
echo "ERROR: One of the signatures could not be verified"
55+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
56+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5257
exit 1
5358
fi
5459

5560
echo "Uploading everything to Nexus"
5661
EXIT_STATUS=0
57-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/omid/' || EXIT_STATUS=$?
58-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/omid/' || EXIT_STATUS=$?
59-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/omid/' || EXIT_STATUS=$?
62+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/omid/' || EXIT_STATUS=$?
63+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/omid/' || EXIT_STATUS=$?
64+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/omid/' || EXIT_STATUS=$?
6065

6166
if [ $EXIT_STATUS -ne 0 ]; then
6267
echo "ERROR: Upload failed"

‎opa/upload_new_opa_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ curl --fail -L -o "${tar_gz_file}" "${download_url}"
4040

4141
echo "Uploading OPA source to Nexus"
4242
EXIT_STATUS=0
43-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${tar_gz_file}" 'https://repo.stackable.tech/repository/packages/opa/' || EXIT_STATUS=$?
43+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${tar_gz_file}" 'https://repo.stackable.tech/repository/packages/opa/' || EXIT_STATUS=$?
4444

4545
if [ $EXIT_STATUS -ne 0 ]; then
4646
echo "ERROR: Upload failed"

‎spark-k8s/upload_new_hbase-connector_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ curl --fail -L -o "${tar_gz_file}" "${download_url}"
4040

4141
echo "Uploading hbase-connectors source to Nexus"
4242
EXIT_STATUS=0
43-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${tar_gz_file}" 'https://repo.stackable.tech/repository/packages/hbase-connectors/' || EXIT_STATUS=$?
43+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${tar_gz_file}" 'https://repo.stackable.tech/repository/packages/hbase-connectors/' || EXIT_STATUS=$?
4444

4545
if [ $EXIT_STATUS -ne 0 ]; then
4646
echo "ERROR: Upload failed"

‎spark-k8s/upload_new_spark_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/spark"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/spark"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,10 +38,10 @@ cd "$WORK_DIR" || exit
3338

3439
src_file="spark-${VERSION}.tgz"
3540

36-
echo "Downloading Spark (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://archive.apache.org/dist/spark/spark-${VERSION}/${src_file}"
38-
curl --fail -LOs "https://archive.apache.org/dist/spark/spark-${VERSION}/${src_file}.asc"
39-
curl --fail -LOs "https://archive.apache.org/dist/spark/spark-${VERSION}/${src_file}.sha512"
41+
echo "Downloading Spark source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/spark-${VERSION}/${src_file}"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/spark-${VERSION}/${src_file}.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/spark-${VERSION}/${src_file}.sha512"
4045

4146
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4247
echo "Validating SHA512 Checksum"
@@ -46,18 +51,18 @@ if ! (sha512sum "${src_file}" | diff - "${src_file}.sha512"); then
4651
fi
4752

4853
echo "Validating signature"
49-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://archive.apache.org/dist/spark/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://archive.apache.org/dist/spark/KEYS | gpg --import")'
50-
5154
if ! (gpg --verify "${src_file}.asc" "${src_file}" 2>/dev/null); then
5255
echo "ERROR: The signature could not be verified"
56+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
57+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5358
exit 1
5459
fi
5560

5661
echo "Uploading everything to Nexus"
5762
EXIT_STATUS=0
58-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/spark/' || EXIT_STATUS=$?
59-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.asc" 'https://repo.stackable.tech/repository/packages/spark/' || EXIT_STATUS=$?
60-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha512" 'https://repo.stackable.tech/repository/packages/spark/' || EXIT_STATUS=$?
63+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/spark/' || EXIT_STATUS=$?
64+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.asc" 'https://repo.stackable.tech/repository/packages/spark/' || EXIT_STATUS=$?
65+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha512" 'https://repo.stackable.tech/repository/packages/spark/' || EXIT_STATUS=$?
6166

6267
if [ $EXIT_STATUS -ne 0 ]; then
6368
echo "ERROR: Upload failed"

‎statsd_exporter/upload_new_statsd_exporter_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ trap cleanup EXIT
3232
cd "$WORK_DIR" || exit
3333

3434
echo "Downloading STATSD EXPORTER source code"
35-
curl --fail -LOs "https://github.com/prometheus/statsd_exporter/archive/refs/tags/v$VERSION.tar.gz" && mv "v$VERSION.tar.gz" "statsd_exporter-$VERSION.src.tar.gz"
35+
curl --fail -LO --progress-bar "https://github.com/prometheus/statsd_exporter/archive/refs/tags/v$VERSION.tar.gz" && mv "v$VERSION.tar.gz" "statsd_exporter-$VERSION.src.tar.gz"
3636

3737
echo "Uploading to Nexus"
38-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "statsd_exporter-$VERSION.src.tar.gz" 'https://repo.stackable.tech/repository/packages/statsd_exporter/'
38+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "statsd_exporter-$VERSION.src.tar.gz" 'https://repo.stackable.tech/repository/packages/statsd_exporter/'
3939

4040
echo "Successfully uploaded new version of STATSD-EXPORTER source code ($VERSION) to Nexus"
4141
echo "https://repo.stackable.tech/service/rest/repository/browse/packages/statsd_exporter/"

‎trino-cli/upload_new_trino_version.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ cd "$WORK_DIR" || exit
3434
bin_file=trino-cli-${VERSION}-executable.jar
3535

3636
echo "Downloading Trino (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION}/${bin_file}"
38-
curl --fail -LOs "https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION}/${bin_file}.asc"
39-
curl --fail -LOs "https://repo1.maven.org/maven2/io/trino/trino-cli/${VERSION}/${bin_file}.sha1"
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"
4040

4141
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4242
echo "Validating SHA1 Checksum"
@@ -89,9 +89,9 @@ fi
8989

9090
echo "Uploading everything to Nexus"
9191
EXIT_STATUS=0
92-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${bin_file}" 'https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
93-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${bin_file}.asc" 'https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
94-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${bin_file}.sha1" 'https://repo.stackable.tech/repository/packages/trino-cli/' || EXIT_STATUS=$?
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=$?
9595

9696
if [ $EXIT_STATUS -ne 0 ]; then
9797
echo "ERROR: Upload failed"

‎trino-storage-connector/upload_new_trino_storage_connector_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ sha256sum "${src_file}" | cut --delimiter=' ' --field=1 > "${src_file}.sha256"
4343

4444
echo "Uploading everything to Nexus"
4545
EXIT_STATUS=0
46-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/trino-storage/' || EXIT_STATUS=$?
47-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha256" 'https://repo.stackable.tech/repository/packages/trino-storage/' || EXIT_STATUS=$?
46+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/trino-storage/' || EXIT_STATUS=$?
47+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha256" 'https://repo.stackable.tech/repository/packages/trino-storage/' || EXIT_STATUS=$?
4848

4949
if [ $EXIT_STATUS -ne 0 ]; then
5050
echo "ERROR: Upload failed"

‎trino/upload_new_trino_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ sha256sum "${src_file}" | cut --delimiter=' ' --field=1 > "${src_file}.sha256"
4343

4444
echo "Uploading everything to Nexus"
4545
EXIT_STATUS=0
46-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/trino-server/' || EXIT_STATUS=$?
47-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha256" 'https://repo.stackable.tech/repository/packages/trino-server/' || EXIT_STATUS=$?
46+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/trino-server/' || EXIT_STATUS=$?
47+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha256" 'https://repo.stackable.tech/repository/packages/trino-server/' || EXIT_STATUS=$?
4848

4949
if [ $EXIT_STATUS -ne 0 ]; then
5050
echo "ERROR: Upload failed"

‎vector/upload_new_vector_version.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ for arch in "${ARCHITECTURES[@]}"; do
3232
"https://yum.vector.dev/stable/vector-$major_version/$arch/$file"
3333

3434
echo "Validating signature"
35-
echo "--> NOTE: Make sure you have downloaded and added Datadog's \
36-
public key (https://keys.datadoghq.com/DATADOG_RPM_KEY_B01082D3.public) \
37-
to the RPM package database:
38-
rpmkeys --import --dbpath $RPM_PACKAGE_DB_PATH DATADOG_APT_KEY_CURRENT.public"
39-
4035
EXIT_STATUS=0
4136
# `rpmkeys --checksig` also succeeds if the digests of an unsigned
4237
# package are okay. Therefore, test explicitly if the output
@@ -50,11 +45,15 @@ rpmkeys --import --dbpath $RPM_PACKAGE_DB_PATH DATADOG_APT_KEY_CURRENT.public"
5045
EXIT_STATUS=$?
5146
if [ $EXIT_STATUS -ne 0 ]; then
5247
echo "ERROR: The signature could not be verified."
48+
echo "--> NOTE: Make sure you have downloaded and added Datadog's \
49+
public key (https://keys.datadoghq.com/DATADOG_RPM_KEY_B01082D3.public) \
50+
to the RPM package database:
51+
rpmkeys --import --dbpath $RPM_PACKAGE_DB_PATH DATADOG_APT_KEY_CURRENT.public"
5352
exit 1
5453
fi
5554

5655
echo "Uploading $file to Nexus"
57-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" \
56+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" \
5857
--upload-file "$file" \
5958
'https://repo.stackable.tech/repository/packages/vector/'
6059

‎zookeeper/upload_new_zookeeper_version.sh

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/zookeeper"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/zookeeper"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,18 +38,16 @@ cd "$WORK_DIR" || exit
3338

3439
bin_file=apache-zookeeper-$VERSION-bin.tar.gz
3540
src_file=apache-zookeeper-$VERSION.tar.gz
36-
download_url=https://archive.apache.org/dist/zookeeper
37-
38-
echo "Downloading ZooKeeper (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
39-
curl --fail -LOs "$download_url/zookeeper-$VERSION/$bin_file"
40-
curl --fail -LOs "$download_url/zookeeper-$VERSION/$bin_file.asc"
41-
curl --fail -LOs "$download_url/zookeeper-$VERSION/$bin_file.sha512"
4241

43-
echo "Downloading ZooKeeper sources (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
44-
curl --fail -LOs "$download_url/zookeeper-$VERSION/$src_file"
45-
curl --fail -LOs "$download_url/zookeeper-$VERSION/$src_file.asc"
46-
curl --fail -LOs "$download_url/zookeeper-$VERSION/$src_file.sha512"
42+
echo "Downloading ZooKeeper binary (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/zookeeper-$VERSION/$bin_file"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/zookeeper-$VERSION/$bin_file.asc"
45+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/zookeeper-$VERSION/$bin_file.sha512"
4746

47+
echo "Downloading ZooKeeper source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
48+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/zookeeper-$VERSION/$src_file"
49+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/zookeeper-$VERSION/$src_file.asc"
50+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/zookeeper-$VERSION/$src_file.sha512"
4851

4952
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
5053
echo "Validating SHA512 Checksums for binary releases"
@@ -59,30 +62,32 @@ if ! (sha512sum "$src_file" | diff -Z - "$src_file.sha512"); then
5962
fi
6063

6164
echo "Validating signatures for binary releases"
62-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://archive.apache.org/dist/zookeeper/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://archive.apache.org/dist/zookeeper/KEYS | gpg --import")'
63-
6465
if ! (gpg --verify "$bin_file.asc" "$bin_file" 2> /dev/null); then
6566
echo "ERROR: One of the signatures could not be verified for a binary release"
67+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
68+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
6669
exit 1
6770
fi
6871

6972
echo "Validating signatures for source releases"
7073
if ! (gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
71-
echo "ERROR: One of the signatures could not be verified for a source release"
72-
exit 1
74+
echo "ERROR: One of the signatures could not be verified for a source release"
75+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
76+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
77+
exit 1
7378
fi
7479

7580
echo "Uploading everything to Nexus"
7681
EXIT_STATUS=0
7782
repo_url=https://repo.stackable.tech/repository/packages/zookeeper/
7883

79-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" "$repo_url" || EXIT_STATUS=$?
80-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" "$repo_url" || EXIT_STATUS=$?
81-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha512" "$repo_url" || EXIT_STATUS=$?
84+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" "$repo_url" || EXIT_STATUS=$?
85+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" "$repo_url" || EXIT_STATUS=$?
86+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha512" "$repo_url" || EXIT_STATUS=$?
8287

83-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" "$repo_url" || EXIT_STATUS=$?
84-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" "$repo_url" || EXIT_STATUS=$?
85-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" "$repo_url" || EXIT_STATUS=$?
88+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" "$repo_url" || EXIT_STATUS=$?
89+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" "$repo_url" || EXIT_STATUS=$?
90+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" "$repo_url" || EXIT_STATUS=$?
8691

8792
if [ $EXIT_STATUS -ne 0 ]; then
8893
echo "ERROR: Upload failed"

0 commit comments

Comments
 (0)
Please sign in to comment.