-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
set -x # Trace commands for this script to make debugging easier.
+set +f # Ensure filename expansion (globbing) is enabled
+
NEXUS_REPO=images-snapshots
release_path=TA/release-1
mkdir -p "$upload_dir1"
mkdir -p "$upload_dir2"
+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/\./.${platform_arch}./" *.*
+ sed -i "s/\./.${platform_arch}./" *."${platform_arch}".iso.*
+ popd
+fi
+
cp "$WORKSPACE/work/results/images/"* "$upload_dir1"
cp "$WORKSPACE/work/results/images/"* "$upload_dir2"