0

我正在尝试使用 Jenkins 将文件上传到 Azure blob 存储,同时上传文件 AZCopy 要求确认,最终出错。

[2018/03/09 10:11:11][WARNING] Incomplete operation with different 
command line detected at the journal directory 
"/var/lib/jenkins/Microsoft/Azure/AzCopy".
 Do you want to overwrite the journal to start a new operation? Choose 
 Yes to overwrite, choose No to cancel current operation. (Yes/No) 
 [2018/03/09 10:11:11][ERROR] The operation was canceled because user 
 chose not to overwrite the existing journal file.
  [Pipeline] }

谁能帮忙解决这个错误,我如何强制 azcopy 覆盖文件?

4

2 回答 2

0

这可能有点晚了,但请尝试添加此标志

--overwrite=[true|false|ifSourceNewer|prompt]

从AzCopy Docs得到答案

于 2020-05-29T16:31:26.900 回答
0

您可以使用/y 选项来抑制确认并强制覆盖。

/Y

禁止所有 AzCopy 确认提示。当未指定 /XO 和 /XN 时,此选项还允许在数据上传方案中使用只写 SAS 令牌

于 2018-03-09T12:59:08.590 回答