From: Alexandru Avadanii Date: Mon, 25 Nov 2019 18:12:14 +0000 (+0100) Subject: ta: iso deploy: Fix artifact name in checksum file X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=refs%2Fchanges%2F49%2F2049%2F1 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 --- 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