Fix deployment of backdated versions of OneFuzz (#347)

When running automated deployments, 'tools' were not being properly replaced with the updated versions if the deployment was created _prior_ to the original instance deployment.
This commit is contained in:
nharper285
2020-12-01 02:59:43 -08:00
committed by GitHub
parent 37e3251966
commit 5092f96af4

View File

@ -575,6 +575,17 @@ class Client:
) )
url = "%s/%s?%s" % (account_url, "tools", sas) url = "%s/%s?%s" % (account_url, "tools", sas)
subprocess.check_output(
[
self.azcopy,
"copy",
os.path.join(self.tools, "*"),
url,
"--overwrite=true",
"--recursive=true",
]
)
subprocess.check_output( subprocess.check_output(
[self.azcopy, "sync", self.tools, url, "--delete-destination", "true"] [self.azcopy, "sync", self.tools, url, "--delete-destination", "true"]
) )
@ -603,6 +614,17 @@ class Client:
) )
url = "%s/%s?%s" % (account_url, "instance-specific-setup", sas) url = "%s/%s?%s" % (account_url, "instance-specific-setup", sas)
subprocess.check_output(
[
self.azcopy,
"copy",
os.path.join(self.instance_specific, "*"),
url,
"--overwrite=true",
"--recursive=true",
]
)
subprocess.check_output( subprocess.check_output(
[ [
self.azcopy, self.azcopy,
@ -642,6 +664,17 @@ class Client:
) )
url = "%s/%s?%s" % (account_url, name, sas) url = "%s/%s?%s" % (account_url, name, sas)
subprocess.check_output(
[
self.azcopy,
"copy",
os.path.join(path, "*"),
url,
"--overwrite=true",
"--recursive=true",
]
)
subprocess.check_output( subprocess.check_output(
[self.azcopy, "sync", path, url, "--delete-destination", "true"] [self.azcopy, "sync", path, url, "--delete-destination", "true"]
) )