Change-Id: Ie62e2f3771632012423e0b791aca1551b4b31112
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
--- /dev/null
+---
+fixes:
+ - |
+ Fix the release job script to handle any trailing '/' set on log_dir
+ and also handle unbound variables correctly.
exit 1
fi
+NEXUSPROXY="${NEXUSPROXY:-None}"
NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
# Fetch the release-schema.yaml
LOGS_URL="${LOGS_SERVER}/${NEXUS_PATH}${LOG_DIR}"
PATCH_DIR="$(mktemp -d)"
-wget --quiet -P "$PATCH_DIR" "${LOGS_URL}"staging-repo.txt.gz
+LOGS_URL=${LOGS_URL%/} # strip any trailing '/'
+wget -P "$PATCH_DIR" "${LOGS_URL}/"staging-repo.txt.gz
nexus_release(){
for staging_url in $(zcat "$PATCH_DIR"/staging-repo.txt.gz | awk -e '{print $2}'); do