ci: Always print status code of HTTP uploads in tracie

I'm seeing occasional unexpected 403 errors when uploading artifacts.
Print the response in case MinIO is telling us why.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6101>
This commit is contained in:
Tomeu Vizoso
2020-07-28 07:47:40 +02:00
parent 903a7d0f87
commit 735ad2d211

View File

@@ -92,7 +92,8 @@ def upload_artifact(file_name, key, content_type):
'x-amz-security-token': minio_token}
print("Uploading artifact to %s" % url);
r = requests.put(url, headers=headers, data=data)
#print(r.text)
if r.status_code >= 400:
print(r.text)
r.raise_for_status()
def gitlab_check_trace(project_url, device_name, trace, expectation):