I need to run sonarqube for multiple projects in a nightly build definition. The problem I found is - after successfully run sonarqube for the first project, a .sonarqube
folder is created and a process seems keep using the folder. As a result, the folder cannot be deleted / used by subsequent projects. Is there a way to solve this?
Error in the prepare step of 2nd project:
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.
I bypass this issue:
"Prepare analysis on SonarQube"
task;".sonarqube\out\"
folder. Source folder "$(Agent.BuildDirectory)\.sonarqube\out\"
;"Remove files starting with a dot"
in advance.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With