mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 11:28:09 +00:00
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:
@ -575,6 +575,17 @@ class Client:
|
||||
)
|
||||
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(
|
||||
[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)
|
||||
|
||||
subprocess.check_output(
|
||||
[
|
||||
self.azcopy,
|
||||
"copy",
|
||||
os.path.join(self.instance_specific, "*"),
|
||||
url,
|
||||
"--overwrite=true",
|
||||
"--recursive=true",
|
||||
]
|
||||
)
|
||||
|
||||
subprocess.check_output(
|
||||
[
|
||||
self.azcopy,
|
||||
@ -642,6 +664,17 @@ class Client:
|
||||
)
|
||||
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(
|
||||
[self.azcopy, "sync", path, url, "--delete-destination", "true"]
|
||||
)
|
||||
|
Reference in New Issue
Block a user