I have two projects in my configuration (first builds my product, second one builds installer). Results of each project are published to PublishDir\ProjectName\NumericLabel and to PublishDir\ProjectName\latest. For reliability reasons I wanted to clean this latest directory prior to publishing new build. While everything works perfectly ok for the first project, for the second one I randomly get an information that buildpublisher task failed. It often complains that latest directory does not exists (but other times everything succeeds). Why is it missing? Because that very same task has removed it a few miliseconds ago. I tried setting permissions so that ccnet user can remove files inside latest directory, but does not have permissions to delete latest directory itself. Unfortunately this results in exception shown below. Why does ccnet try to remove the latest directory at all? And most importantly: what can I do for the publisher to work reliably? -- Regards, Tomasz Grobelny
[ProductNameInstaller:INFO] Task output: [ProductNameInstaller:ERROR] Publisher threw exception: System.IO.IOException: Access to the path 'C:\builder\PublishDirectory\ProductNameInstaller\latest' is denied. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive) at ThoughtWorks.CruiseControl.Core.Publishers.BuildPublisher.DeleteFolder(String folderName) at ThoughtWorks.CruiseControl.Core.Publishers.BuildPublisher.Execute(IIntegrationResult result) at ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.Run(IIntegrationResult result) at ThoughtWorks.CruiseControl.Core.Project.RunTask(ITask task, IIntegrationResult result, Boolean isPublisher) at ThoughtWorks.CruiseControl.Core.Project.PublishResults(IIntegrationResult result, Dictionary`2 parameterValues) [ProductNameInstaller:INFO] Delete merged file 'C: \builder\ArtifactDirectory\ProductNameInstaller\msbuild-results- edc83d65-6782-4d83-9229-768398dc0f12.xml'. [ProductNameInstaller:INFO] Integration complete: Exception - 7/30/2010 8:03:09 PM
