need to add '/' after nexus_host
This commit is contained in:
@@ -8,7 +8,7 @@ print_help() {
|
|||||||
echo -e "For UPLOAD"
|
echo -e "For UPLOAD"
|
||||||
echo -e "$0 <nexus_host> <repository>"
|
echo -e "$0 <nexus_host> <repository>"
|
||||||
echo -e "Like this:"
|
echo -e "Like this:"
|
||||||
echo -e "<nexus_host>service/rest/v1/components?repository=<repository>"
|
echo -e "<nexus_host>/service/rest/v1/components?repository=<repository>"
|
||||||
echo -e
|
echo -e
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ upload_package() {
|
|||||||
local nexus_host=$1
|
local nexus_host=$1
|
||||||
local repository=$2
|
local repository=$2
|
||||||
local package=$3
|
local package=$3
|
||||||
curl -X POST "$1service/rest/v1/components?repository=$repository" \
|
curl -X POST "$nexus_host/service/rest/v1/components?repository=$repository" \
|
||||||
-H "accept: application/json" \
|
-H "accept: application/json" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-F "pypi.asset=@$package" -i
|
-F "pypi.asset=@$package" -i
|
||||||
|
|||||||
Reference in New Issue
Block a user