【发布时间】:2022-01-19 09:20:27
【问题描述】:
我有一个 Azure 发布管道,其中一个步骤是将文件(比如说“xyz.txt”)作为 Blob 文件从工作目录复制到 Azure 存储容器。直到昨天,它工作正常并按预期工作。
steps:
- task: AzureFileCopy@3
displayName: 'Copy file to BLOB'
inputs:
SourcePath: '$(System.DefaultWorkingDirectory)/FilePath'
azureSubscription: 'ABCSubscription'
Destination: AzureBlob
storage: ABCstorage
ContainerName: abcContainerName
现在我对文件(“xyz.txt”)进行了一些更改,每当我从发布管道创建发布时,我都会看到错误 "The remote server returned an error: (412) There is currently a lease on the blob and no lease ID was specified in the request..。这导致发布管道失败。解决办法是什么?
我是否必须登录门户并手动单击"Break lease"。有没有办法只通过管道来做到这一点("Break lease")?
【问题讨论】:
标签: azure-devops azure-blob-storage azure-pipelines-release-pipeline