From 80f8c2a4185291cfa1adcecaa56016cdc96399f7 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 10 Nov 2022 15:14:08 +0100 Subject: [PATCH] Correct artifactory upload URL Signed-off-by: Evan Lezar --- scripts/release-kitmaker-artifactory.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release-kitmaker-artifactory.sh b/scripts/release-kitmaker-artifactory.sh index 7e1b24b1..3d511cde 100755 --- a/scripts/release-kitmaker-artifactory.sh +++ b/scripts/release-kitmaker-artifactory.sh @@ -141,7 +141,7 @@ upload_file() { # extract the Artifactory hostname artifactory_host=$(echo "${ARTIFACTORY_URL##https://}" | awk -F'/' '{print $1}') # get base part of the ARTIFACTORY_URL without hostname - local image_path="${ARTIFACTORY_URL#https://${artifactory_host}/}/${dist}/${arch}" + local image_path="${ARTIFACTORY_URL#https://${artifactory_host}/}/${dist}/${arch}/$(basename ${file})" local PROPS process_props "${dist}" "${arch}" @@ -159,7 +159,7 @@ upload_file() { -H "X-JFrog-Art-Api: ${ARTIFACTORY_TOKEN}" \ -H "X-Checksum-Sha1: ${SHA1_SUM}" \ ${file:+-T ${file}} -X PUT \ - "https://${artifactory_host}/artifactory/${image_path};${PROPS}" ; + "https://${artifactory_host}/${image_path};${PROPS}" ; then echo "ERROR: upload file failed: ${file}" exit 1