문제

Is there any mechanism available (preferably through the TFS API) to delete the drop output of a deleted build?

We have a number of deleted builds were the drop output still remains, as a result of the retention policy of the build definition in the past not being set to delete "All".

Querying the relevant builds and "redeleting" with IBuildDetail.Delete() or IBuildServer.DeleteBuilds(builds) has no effect (which one may expect), nor does IBuildServer.DestroyBuilds(builds).

Is the only option to get the drop location from the IBuildDetail and use the standard System.IO file/directory classes to perform the directory delete?

도움이 되었습니까?

해결책

That would be my guess. At this point those folders are just regular old windows folders, since the build(s) they were linked to no longer exist. So I would expect to use a regular old delete folder command if I wanted to delete them.

다른 팁

The "Community TFS Build Manager" extension provides this functionality. Just delete your build and it will remove the contents from the drop folder as well.

http://visualstudiogallery.msdn.microsoft.com/cfdb84b4-285e-4eeb-9fa9-dad9bfe2cd10

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top