#!/bin/bash
-# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
#
DEPLOY_LOG="$WORKSPACE/archives/deploy-maven-file.log"
mkdir -p "$WORKSPACE/archives"
-NEXUS_REPO_URL="${NEXUS_URL}/$REPO_ID"
-mkdir -p "$UPLOAD_FILES_PATH"
+NEXUS_REPO_URL="${NEXUS_URL}/content/repositories/$REPO_ID"
while IFS="" read -r file
do
"$file" \
-b "$MVN" \
-g "$GROUP_ID" | tee "$DEPLOY_LOG"
-done < <(find "$UPLOAD_FILES_PATH" -type d -name "*")
+done < <(find "$UPLOAD_FILES_PATH" -type f -name "*")