Why is TFS 2015 sometimes not able to create the destination folder?

Brass Contributor

I'm working with TFS 2015. We're working on a WPF app. Currently we've got 2 environments, one for Dev and the other for Test. We've got a CI/CD pipeline going, so when the build succeeds it automatically kicks off the release to generate for Dev and Test. But today, after my colleague checked in his code changes and the build succeeded, it blew away the folder for the Test and failed to create it again. Here's a snippet from the log:

 

2021-09-22T19:53:25.7986994Z ##[debug]file:C:/agent/_work/22d6e11d0/Pharm Warehouse Test/Pharmacy Warehouse Test/Application Files/Pharmacy Warehouse Test_1_0_0_23169/VSLangProj2.dll.deploy will be copied.
2021-09-22T19:53:25.7986994Z ##[debug]file:C:/agent/_work/22d6e11d0/Pharm Warehouse Test/Pharmacy Warehouse Test/Application Files/Pharmacy Warehouse Test_1_0_0_23169/VSLangProj80.dll.deploy will be copied.
2021-09-22T19:53:25.7986994Z ##[debug]file:C:/agent/_work/22d6e11d0/Pharm Warehouse Test/Pharmacy Warehouse Test/Pharmacy Warehouse Test.application will be copied.
2021-09-22T19:53:25.7986994Z ##[debug]file:C:/agent/_work/22d6e11d0/Pharm Warehouse Test/Pharmacy Warehouse Test/Pharmacy Warehouse Test.exe will be copied.
2021-09-22T19:53:25.7986994Z ##[debug]file:C:/agent/_work/22d6e11d0/Pharm Warehouse Test/Pharmacy Warehouse Test/setup.exe will be copied.
2021-09-22T19:53:25.7986994Z Cleaning target folder: \\dohr2simdep001\Releases\Pharmacy Warehouse\Pharmacy Warehouse Test
2021-09-22T19:53:25.7986994Z ##[debug]rm -rf \\dohr2simdep001\Releases\Pharmacy Warehouse\Pharmacy Warehouse Test
2021-09-22T19:53:26.0330602Z ##[debug]creating path: \\dohr2simdep001\Releases\Pharmacy Warehouse\Pharmacy Warehouse Test
2021-09-22T19:53:26.0330602Z shell.js: internal error
2021-09-22T19:53:26.0330602Z Error: EPERM: operation not permitted, mkdir '\\dohr2simdep001\Releases\Pharmacy Warehouse\Pharmacy Warehouse Test'
2021-09-22T19:53:26.0330602Z at Error (native)
2021-09-22T19:53:26.0330602Z at Object.fs.mkdirSync (fs.js:842:18)
2021-09-22T19:53:26.0330602Z at mkdirSyncRecursive (C:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:11:8)
2021-09-22T19:53:26.0330602Z at C:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:63:7
2021-09-22T19:53:26.0330602Z at Array.forEach (native)
2021-09-22T19:53:26.0330602Z at Object._mkdir (C:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:48:8)
2021-09-22T19:53:26.0330602Z at Object.mkdir (C:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\common.js:186:23)
2021-09-22T19:53:26.0330602Z at Object.mkdirP (C:\agent\tasks\CopyFiles\1.0.13\node_modules\vsts-task-lib\task.js:530:19)
2021-09-22T19:53:26.0330602Z at Object.<anonymous> (C:\agent\tasks\CopyFiles\1.0.13\copyfiles.js:167:8)
2021-09-22T19:53:26.0330602Z at Module._compile (module.js:413:34)

What causes this and what can be done about it?

0 Replies