-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
-
+echo "---> maven-stage.sh"
# This script publishes artifacts to a staging repo in Nexus.
#
# $WORKSPACE/m2repo : Exists and used to deploy the staging repository.
# Store repo info to a file in archives
mkdir -p "$WORKSPACE/archives"
-echo "$staging_repo" > "$WORKSPACE/archives/staging-repo.txt"
+echo "$staging_repo ${NEXUS_URL}/content/repositories/$staging_repo" | tee -a "$WORKSPACE/archives/staging-repo.txt"
# Cleanup
-rm "$TMP_FILE"
+rm -f "$TMP_FILE"