another update_ci_routes fix

old-commit-hash: 309384e2f78f41f205461829f6fe7771750ae500
This commit is contained in:
Adeeb Shihadeh
2020-12-31 14:00:30 -08:00
parent 1eb2e651f0
commit c1042b848e
+2 -3
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",