Skip to content

Instantly share code, notes, and snippets.

Avatar
😑
Sheer Stupidity

Collapsed Plug Clpsplug

😑
Sheer Stupidity
View GitHub Profile
@Clpsplug
Clpsplug / uploading-artifact-chunk-or-no-chunk.py
Last active Nov 24, 2020
This is how I tried to upload the local build to UCB.
View uploading-artifact-chunk-or-no-chunk.py
# perform_bad_gateway == True: how I first called the API and the server ended up crashing
# perform_bad_gateway == False: how I call it NOW and the server has no issue with it
from tusclient import client
upload_url = "https://build-artifact-api.cloud.unity3d.com/api/v1" + \
"/projects/{0}/buildtargets/{1}/builds/{2}/artifacts/{3}/upload/{4}".format(
project_id,
"_local",
build_number,