When we run the build pipeline in Azure Devops, if we encounter below error then you can make the change recommended here.
D:\DevOps\Build\33\s\PT\<foldername>cannot be deleted because it is not empty.
D:\DevOps\Build\33\s\PT\<foldername> cannot be deleted because it is not empty.
---- Summary: 0 conflicts, 1 warnings, 0 errors ----
Sleeping for 200 ms
Retrying. Attempt $2/$3
##[error]_proc should be null. (Parameter '_proc')
You can perform different kinds of cleaning of the working directory of your private agent before the build is run. If the Clean is set to false, it does not get a fresh pull before the build is run.