Fix deployment of backdated versions of OneFuzz
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.
@@ -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"]
)
