Sonarqube“;未能创建空目录";在一个VSTS生成定义中扫描多个项目时

Sonarqube“;未能创建空目录";在一个VSTS生成定义中扫描多个项目时,sonarqube,azure-pipelines,Sonarqube,Azure Pipelines,我需要在夜间构建定义中为多个项目运行sonarqube。我发现的问题是-在为第一个项目成功运行sonarqube之后,创建了一个.sonarqube文件夹,并且一个进程似乎一直在使用该文件夹。因此,后续项目无法删除/使用该文件夹。有办法解决这个问题吗 第二个项目的准备步骤出错: 2017-06-08T22:43:53.0910761Z ##[error]Failed to create an empty directory 'C:\VSTS-Agent-2.104.0\_work\3\.son

我需要在夜间构建定义中为多个项目运行sonarqube。我发现的问题是-在为第一个项目成功运行sonarqube之后,创建了一个
.sonarqube
文件夹,并且一个进程似乎一直在使用该文件夹。因此,后续项目无法删除/使用该文件夹。有办法解决这个问题吗

第二个项目的准备步骤出错:

2017-06-08T22:43:53.0910761Z ##[error]Failed to create an empty directory 'C:\VSTS-Agent-2.104.0\_work\3\.sonarqube'. Please check that there are no open or read-only files in the directory and that you have the necessary read/write permissions.
2017-06-08T22:43:53.0910761Z ##[error]Detailed error message: The process cannot access the file 'newSummaryReport.md' because it is being used by another process.
2017-06-08T22:43:53.0910761Z ##[error]Pre-processing failed. Exit code: 1
2017-06-08T22:43:53.0910761Z ##[error]System.Exception: Unexpected exit code received from batch file: 1
2017-06-08T22:43:53.0910761Z    at Microsoft.TeamFoundation.DistributedTask.Task.Internal.InvokeBatchScriptCmdlet.ProcessRecord()
2017-06-08T22:43:53.0910761Z    at System.Management.Automation.CommandProcessor.ProcessRecord()
2017-06-08T22:43:53.1066882Z ##[error]PowerShell script completed with 1 errors.

我无法重现此问题,请尝试删除3个文件夹(\u work\3),然后重试。另外,请使用另一个生成代理重试并检查结果。另一方面,您可以在OneDrive上共享详细的构建日志。我可以不断地重现该问题,但进程/文件锁定似乎是临时的。假设项目2失败了,项目3也没问题。我正在考虑在两者之间添加一个powershell脚本,以等待文件锁的释放。我猜这可能和项目规模有关?你们能用简单的项目重现这个问题吗?这些项目的规模有多大?我也遇到了这个问题。我对onprem TFS 2018也有同样的问题。