diff --git a/scripts/ci/jobs/diff-dumps.sh b/scripts/ci/jobs/diff-dumps.sh index 707e33434..7846c7b7d 100755 --- a/scripts/ci/jobs/diff-dumps.sh +++ b/scripts/ci/jobs/diff-dumps.sh @@ -76,7 +76,6 @@ create_offline_dump() { cd /tmp/offline-dump zip scanner-vuln-updates.zip scanner-defs.zip k8s-istio.zip - du -skh scanner-vuln-updates.zip cmd=() if is_in_PR_context; then @@ -93,7 +92,7 @@ upload_offline_dump() { if is_in_PR_context; then cmd+=(echo "Would do") fi - curl --silent --show-error --create-dirs -o out/RELEASE_VERSION.txt https://raw.githubusercontent.com/stackrox/stackrox/master/scanner/updater/version/RELEASE_VERSION + curl --silent --show-error --max-time 60 --retry 3 --create-dirs -o out/RELEASE_VERSION.txt https://raw.githubusercontent.com/stackrox/stackrox/master/scanner/updater/version/RELEASE_VERSION version_file="out/RELEASE_VERSION.txt" # Use grep to extract X.Y versions, sort them, and get the last one as the latest latest_version=$(grep -oE '^[0-9]+\.[0-9]+' "$version_file" | sort -V | tail -n 1)