Copy Files Task / Publish Build Artifacts Task copy to invalid UNC OR drive root produces RangeError: Maximum call stack size exceeded Issue
See original GitHub issueTFS Agent copy files task trying to create a directory on Network Mapped Drive (Z:\Releases, z drive is UNC Path as Mapped Network Drive) but getting this error:
RangeError: Maximum call stack size exceeded String.slice (native) Object.dirname (path.js:795:17) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:7:22) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:16:3) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:16:3) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:16:3) mkdirSyncRecursive (D:\agent\tasks\CopyFiles\1.0.13\node_modules\shelljs\src\mkdir.js:16:3)
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Copy Files Task / Publish Build Artifacts Task copy to invalid ...
Copy Files Task / Publish Build Artifacts Task copy to invalid UNC OR drive root produces RangeError: Maximum call stack size exceeded Issue...
Read more >TFS 2015 Publish Build Artifacts with file share met error
This is a known issue: Copy Files Task / Publish Build Artifacts Task copy to invalid UNC OR drive root produces RangeError: Maximum...
Read more >Copy and Publish Build Artifacts v1 task | Microsoft Learn
Use this task to copy build artifacts to a staging folder and then publish them to the server or a file share. Files...
Read more >Publishing build artifacts failed with an error unable to create ...
Publishing build artifacts failed with an error: Unable to create directory '{p}'. Unable to verify the directory exists: '{testDir}'.
Read more >Remix Documentation - Read the Docs
To interact with a contract using the ABI, create a new file in Remix with extension *.abi and copy the ABI content to....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, that is a bad error which essentially means the share doesn’t exist or no permissions (agent runs as). We are changing this task to call robocopy.
Yes the fix for Copy Files will roll out with 106.