Print response content in case we cannot upload artifact to bintray.

This commit is contained in:
Matthieu Gautier 2019-08-22 14:32:18 +02:00
parent 6bebdf89fc
commit 05be522ef4
2 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ def upload(version, filepath, artefact):
rcode_family = rcode // 100
if rcode_family not in (2, 3):
print("ERROR: Fail to upload artefact")
print(r.text)
return False
return True

View File

@ -83,6 +83,7 @@ then
fi
)
ls $BINTRAY_ARCHIVES_DIR
BINTRAY_ARCHIVES=$(find $BINTRAY_ARCHIVES_DIR -name "*_bintray_info.json" -type f)
if [[ "x$BINTRAY_ARCHIVES" != "x" ]]
then