aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/projectstore_cmd.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-11-12 09:47:47 +0100
committerGitHub Enterprise <[email protected]>2025-11-12 09:47:47 +0100
commit38afe76ae786288543a0bfd341f6b088a8fb5f5e (patch)
tree52d95ec3bf00850ff3a74c516aec6a711d7b27fe /src/zen/cmds/projectstore_cmd.cpp
parent5.7.9-pre19 (diff)
downloadarchived-zen-38afe76ae786288543a0bfd341f6b088a8fb5f5e.tar.xz
archived-zen-38afe76ae786288543a0bfd341f6b088a8fb5f5e.zip
control cache upload (#646)
* add option to enable/disable upload to builds cache
Diffstat (limited to 'src/zen/cmds/projectstore_cmd.cpp')
-rw-r--r--src/zen/cmds/projectstore_cmd.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/zen/cmds/projectstore_cmd.cpp b/src/zen/cmds/projectstore_cmd.cpp
index 5791e6fda..4fdbd3b0d 100644
--- a/src/zen/cmds/projectstore_cmd.cpp
+++ b/src/zen/cmds/projectstore_cmd.cpp
@@ -1603,6 +1603,7 @@ ImportOplogCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** arg
Writer.AddString("namespace"sv, m_JupiterNamespace);
Writer.AddString("bucket"sv, m_JupiterBucket);
Writer.AddString("buildsid"sv, m_BuildsId);
+ Writer.AddBool("populateCache"sv, m_UploadToZenCache);
WriteAuthOptions(Writer,
m_JupiterOpenIdProvider,
m_JupiterAccessToken,
@@ -2238,6 +2239,12 @@ OplogDownloadCommand::OplogDownloadCommand()
auto AddCacheOptions = [this](cxxopts::Options& Ops) {
Ops.add_option("cache", "", "zen-cache-host", "Host ip and port for zen builds cache", cxxopts::value(m_ZenCacheHost), "<zenhost>");
+ Ops.add_option("cache",
+ "",
+ "zen-cache-upload",
+ "Upload data downloaded from remote host to zen cache",
+ cxxopts::value(m_UploadToZenCache),
+ "<uploadtozencache>");
};
AddCloudOptions(m_Options);
@@ -2552,8 +2559,8 @@ OplogDownloadCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** a
.ForceDownload = m_ForceDownload,
.DecompressAttachments = m_DecompressAttachments,
.TempFolderPath = StorageTempPath,
- .AttachmentOutputPath = m_AttachmentsPath});
-
+ .AttachmentOutputPath = m_AttachmentsPath,
+ .PopulateCache = m_UploadToZenCache});
Op.Execute();
}
else