Get notification when a build is deleted
-
2012년 7월 13일 금요일 오전 5:09
Which type of object should i use for getting notification about a build is deleted.
I have implemented the ISubscriber interface to enabling recieving events from the TFS system. But I have not found a way to recieve events when a build is deleted. The deletion could either be automatically or manually. Which type of object should I set in the SubscribedTypes?
I have found a BuildDeletedEvent class on MSDN but it is not contained in the Microsoft.TeamFoundation.Build.Server.dll assembly as described on MSDN.
모든 응답
-
2012년 7월 13일 금요일 오전 8:22Looking at the docs, this event is new in Visual Studio 2012/TFS 2011.
My blog: blog.jessehouwing.nl
-
2012년 7월 13일 금요일 오전 9:07
Oh! I didn't see that.
I have TFS2010 - are there no solution to getting notifications about deleted build in this release?
-
2012년 7월 16일 월요일 오후 9:13소유자
Hi Hanstad:
You should take a look at this tool on Codeplex: Team Foundation Server Event Subscription Tool. It is a tool you place on the TFS server to observe what events fire when an action occurs.- Install this on the TFS server
- Start the App
- Delete a build
- Watch the events that fire and what is called then use this information to write your notification routine
Trevor Hancock (Microsoft)
Please remember to "Mark As Answer" the replies that help.- 답변으로 제안됨 Trevor HancockMicrosoft Employee, Moderator 2012년 7월 16일 월요일 오후 9:13
-
2012년 7월 17일 화요일 오전 7:13Great tool but I didn't found any event about build being deleted
-
2012년 7월 20일 금요일 오후 3:10소유자
I cannot find an event that fires exactly when the build is deleted. So, let’s think about this a slightly different way.
I did find this code that lists all the deleted builds:
http://geekswithblogs.net/TarunArora/archive/2012/05/20/tfs-api-find-out-who-deleted-your-build.aspx
You could get a list of the deleted builds and save this list. You could then check for newly deleted builds periodically and then send your notification when a new build appears.
Trevor Hancock (Microsoft)
Please remember to "Mark As Answer" the replies that help.- 답변으로 표시됨 Hanstad 2012년 7월 23일 월요일 오전 6:56
-
2012년 7월 23일 월요일 오전 6:56Thanks for your input. I have thought about that solution but don't like the idea of keeping a saved list. But it looks like there is no other way until the new version of TFS is comming.

