azure-pipelines-tasks: Extract files task fails on clean destination

Every once in a while the Extract files task with the clean destination enabled fails after clean. I could not find a pattern. Whenever this happens, the target folder is going missing (is deleted in this task).

2016-11-17T20:45:44.8977942Z Cleaning destination folder before extraction: C:\inetpub\wwwroot_INT-fe
2016-11-17T20:45:45.0384251Z Error: EPERM: operation not permitted, stat 'C:\inetpub\wwwroot_INT-fe'

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (10 by maintainers)

Most upvoted comments

@renatotkr if you want to build the repo (contribute instructions in readme.md), then you can use tfx to upload the copy files task layout that is produced under _build\tasks\copyfiles. you would want to build a release branch, releases/m112. i added a change in m112 so that if you select “clean”, then it only cleans the contents and doesnt drop the folder. that may solve the problem you are running into.