Merge "IEC jobs in Akraino Lab"
[ci-management.git] / jjb / shell / ta-iso-deploy.sh
index cbe86b9..1ec4731 100644 (file)
@@ -27,6 +27,15 @@ nexus_repo_url="$NEXUS_URL/content/repositories/$NEXUS_REPO"
 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"