another update_ci_routes fix

albatross
Adeeb Shihadeh 2020-12-31 14:00:30 -08:00
parent 35fbb9d097
commit 309384e2f7
1 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ DEST_KEY = azureutil.get_user_token(_DATA_ACCOUNT_CI, "openpilotci")
SOURCE_KEYS = [azureutil.get_user_token(account, bucket) for account, bucket in SOURCES]
SERVICE = BlockBlobService(_DATA_ACCOUNT_CI, sas_token=DEST_KEY)
def sync_to_ci_public(route):
print(f"Uploading {route}")
key_prefix = route.replace('|', '/')
@ -33,8 +32,8 @@ def sync_to_ci_public(route):
cmd = [
"azcopy",
"copy",
"https://{}.blob.core.windows.net/{}/{}/?{}".format(source_account, source_bucket, key_prefix, source_key),
"https://{}.blob.core.windows.net/{}/{}/?{}".format(_DATA_ACCOUNT_CI, "openpilotci", dongle_id, DEST_KEY),
"https://{}.blob.core.windows.net/{}/{}?{}".format(source_account, source_bucket, key_prefix, source_key),
"https://{}.blob.core.windows.net/{}/{}".format(_DATA_ACCOUNT_CI, "openpilotci", dongle_id),
"--recursive=true",
"--overwrite=false",
"--exclude-pattern=*/dcamera.hevc",