1

During our incremental builds, where the repository clean parameter is set to 'false'. Build fails intermittently during get source step with the following error: Unable to perform the get operation because the file already exists locally.

Is there a way to resolve the error without setting the repository clean parameter to true?

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
Santhosh
  • 671
  • 12
  • 36

1 Answers1

1

@Buck Hodges (Director of Engineering at Microsoft) has given the answer in this case:

The file is writable. When there's a writable file, get will not overwrite it unless the /overwrite option is used. However, you would need to figure out how the file is becoming writable. You may want to go back to the default option of creating a new workspace, running a build with verbose logs, and see what is making the file writable.

Build vnext agent (1.x) does not provide a way to control whether /overwrite is included. The new agent (2.x) does specify /overwrite every time in order to prevent writable files causing problems. The new agent will be the default in TFS "15" and in VS Team Services.

Community
  • 1
  • 1
Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39