This project is read-only.
1
Vote

PermissionDenied errors in GatherItemsForDrop.ps1

description

Seems like this script can't handle readonly files. For instance, if a file exist in several locations in build source directory and it, for example, exist in TFS and readonly. Then the first file instance is copied, but the next is not, and gives the following error:

Copy : Access to the path '{path}\xxx.dll' is denied.
At {path}\BuildProcessTemplates\GatherItemsForDrop.ps1:128 char:3
  • Copy $file $Env:TF_BUILD_BINARIESDIRECTORY
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : PermissionDenied: ({path}\xxx.dll:FileInfo) [Copy-Item], Unauthorized
    AccessException
  • FullyQualifiedErrorId : CopyFileInfoItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.CopyItemCommand

comments

Action20 wrote Jul 9, 2015 at 10:14 PM

Has there been a fix for this issue?