One of our builds get the Cannot delete file and only way to fix it is by going onto the buildAgent box and deleting the directory it mentions.
[16:21:18]: [Updating sources] Repository sources transferred: 3413.52Mb total
[16:21:18]: [Updating sources] Average transfer speed: 8.28Mb per second
[16:21:21]: [Updating sources] Removing /opt/choicestream/apps/buildAgent/work/b641db99760b3607
[16:21:22]: [Updating sources] Error while applying patch: Cannot delete file /opt/choicestream/apps/buildAgent/work/b641db99760b3607
Have tried changing the directory to have 777 permissions and the build still fails. Any ideas?