exit 1
fi
- local nexus_url="$1"
+ local nexus_url="${1%/}"
local nexus_path="$2"
# Workspace of where to search for files to archive.
local workspace="$3"
exit 1
fi
- local nexus_url="$1"
+ local nexus_url="${1%/}"
local nexus_path="$2"
local build_url="$3"
shift $((OPTIND-1))
# User input
- local nexus_url="$1"
+ local nexus_url="${1%/}"
local repo_id="$2"
local file="$3"
# deploy-at-end configuration with upstream Maven.
# https://issues.apache.org/jira/browse/MDEPLOY-193
- local nexus_repo_url="$1"
+ local nexus_repo_url="${1%/}"
local deploy_dir="$2"
if [ -z "$2" ]; then
# staging repo.
# deploy_dir: The directory to deploy. (Ex: /tmp/m2repo)
- local nexus_url="$1"
+ local nexus_url="${1%/}"
local staging_profile_id="$2"
local deploy_dir="$3"
# Site Ex: org.opendaylight.odlparent
# deploy_zip: The zip to deploy. (Ex: /tmp/artifacts.zip)
- local nexus_url="$1"
+ local nexus_url="${1%/}"
local nexus_repo="$2"
local nexus_path="$3"
local deploy_zip="$4"
# nexus_repo_url: The URL to the Nexus repo.
# (Ex: https://nexus.example.org/content/repositories/release)
# file: File that is to be pushed to Nexus.
- local nexus_repo_url="$1"
+ local nexus_repo_url="${1%/}"
local file="$2"
echo "Uploading ${file}"