debug upload curl command
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -37,6 +37,7 @@ curl \
|
||||
for f in ${PLUGIN_FILE//,/ }; do
|
||||
BASE_FILENAME=`basename $f`
|
||||
echo "INFO: uploading $BASE_FILENAME to $API_URL"
|
||||
echo "curl --location --user ${PLUGIN_USER}:${PLUGIN_TOKEN} --upload-file $f --write-out %{http_code} --silent --output /dev/null $PACKAGE_URL/$BASE_FILENAME"
|
||||
status_code=`curl --location --user ${PLUGIN_USER}:${PLUGIN_TOKEN} --upload-file $f --write-out %{http_code} --silent --output /dev/null $PACKAGE_URL/$BASE_FILENAME`
|
||||
|
||||
if [ $status_code -ne 201 ]; then
|
||||
|
||||
Reference in New Issue
Block a user