From 6dd28252592e15c6347e54123c7408ef2b05f10d Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Mon, 25 Nov 2019 19:12:14 +0100 Subject: [PATCH] ta: iso deploy: Fix artifact name in checksum file On non-x86_64 platforms, we rename the artifacts (and their corresponding checksum files) to include the platform architecture in their names. However, the contents of the checksum files should also be updated to reflect the new artifact naming. Change-Id: I2fb2fc8feb6299f3ee2dc26cc2fe7df929e4509a Signed-off-by: Alexandru Avadanii --- jjb/shell/ta-iso-deploy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jjb/shell/ta-iso-deploy.sh b/jjb/shell/ta-iso-deploy.sh index c9d5559..1ec4731 100644 --- a/jjb/shell/ta-iso-deploy.sh +++ b/jjb/shell/ta-iso-deploy.sh @@ -27,10 +27,12 @@ nexus_repo_url="$NEXUS_URL/content/repositories/$NEXUS_REPO" mkdir -p "$upload_dir1" mkdir -p "$upload_dir2" -if [ "$(uname -m)" != 'x86_64' ]; then +platform_arch=$(uname -m) +if [ "${platform_arch}" != 'x86_64' ]; then # On non-x86 architecture, rename the artifacts appropiately pushd "$WORKSPACE/work/results/images/" - rename "s/\./.$(uname -m)./" *.* + rename "s/\./.${platform_arch}./" *.* + sed -i "s/\./.${platform_arch}./" *."${platform_arch}".iso.* popd fi -- 2.16.6