index > Visual Studio Team System - General > bissubscribe or Event Toaster?

bissubscribe or Event Toaster?




Luis Fraile - MCSD.NET - http://luisfraile.spaces.live.com/

Hello all, I have a question concerning the bissubscribe and/or the Event Toaster.

Current Solution:
When a build is generated at 4h00am a perl script located in the <target>...</target> gets launched with the following instruction:
<Exec Command="path_to_perl_script" IgnoreExitCode="true"/>
This worked great until recently...anyhow...The problem with this approach is that, for each project we have, we create a new branch and with this branch we create 2 new Build Types: One Integration and the other Release.
Now I need to manually add this instruction in the .target file.
I would like to change that. In fact I would like to remove this instruction and move on with something more useful.

Here is my quest:
I would like to create some sort of listener tool that would be installed on our teambuild machine. That listener would capture the "BuildCompletionEvent". It would filter the failed builds and call the perl script to automagically start the installation of that successful build.

I am faced with 2 possible scenario and I need your help figuring out which is the best approach.

Approach 1)
Would be to have Visual Studio open (I believe) on the teambuild machine and use the Event Toaster PowerTool to invoke my perl script. This seems somewhat easy but I can't filter the failed builds and I have to leave the IDE open on the server. Unless I'm unaware of some option...

Approach 2)
Would be to create some sort of listener that would capture the "BuildCompletionEvent", filter the quality of the build then take proper action such as start the install of that build (on another server for example)

The problem I have is that I don't seem to understand how do I capture the Event? In other words, what exactly is it sending? The Build Name? The Build Quality?
I understand how to subscribe to an Event no problem but capturing it and doing stuff with it, is something I can't seem to understand.

Perhaps a small example would help or a link

Thanks in advace for any information
Sincerely
Vince

Vlince
 

I will try to explain, sorry if wasn't what you asked for, well I assume you know how tu subscribe a webservice for an event, is ok?

So first af all, the webservice you subscribe, must have this, definition:

    [WebMethod]
    [SoapDocumentMethod
        (Action = "http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03/Notify",
        RequestNamespace = "http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03")]
    public void Notify(string eventXml)     // Do not change the name of this argument.
   

So when TFS, calls your webservice, on that "eventXml" parameter you will have all the information regarding to that event, to get more information about the event you are interested in, take a look to the file: "%Program Files%\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\v1.0\Transforms\BuildCompletionEvent.xsd" which has the schema of the data sended to the webservice, you can even, use xsd.exe, to create a class you can add to your webservice project, and using XmlSerializer, get the data in the Xml to the class, so it will be easier to deal with this data.

Once you have this, you have all the info you need, now you just can do whatever yo want/can with .NET for calling your process.

Luis Fraile

Thank you Luis for the quick reply!

Yes it does make sense and it does clarify a few things for me :-)
I will futher investigate and more importantly...try it!

Thanks again
Sincerely

Vince

Vlince
reply 3

You can use google to search for other answers

 

More Articles

Team Suite release date? Simple installer? ISV empower?
does microsoft team foundation server require visual studio team ...
E-Mail Alerts ...
VS team edition latest version download size..?
Rosetta Not Playing Nicely - Help Request (Security)
180 day Trial Download
which team system when role changes?
how to editthe crystal report design at client machine
Help --- TF30162: Task "SharePointPortal" from Group &q...
Building a new Software Factory
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Visual Studio 2005 (.NET 2.0) supports S…
Upgrade path from MSDN Professional
Virtual PC or side-by-side installation …
Are any of the products in Team System t…
VS.NET 2005 Version Differences
Tasks do not show up in Window SharePoin…
Certification
VSTS Roadmap
Project inheriting
Style Dialogue Box Not Displaying
June Beta 2 compatibilty with team funda…
Visual Studio Team Suite Licence
Control Gallery Component in Visual Stud…
Team System & Roles
Is Team System just for .NET developers?

Hot Articles

Team Foundation Server RTM with Premium …
Will VSTS Foundation Server ship when VS…
My VS2005 Experiences
how to get alternate phrases when SR Eng…
LoginView postback error
What can Visual Studio Team System integ…
Tabbing between open documents using CTR…
Evaluation Peroid for Vistual Studio 200…
How to disable "resolve" in wo…
Creating work items outside of Team Expl…
deployment of the .NET 2.0 Beta2 Framework
Help urgently required - Team Server sha…
WARNING: VSTS not compliant with DoD IA …
Process templates
Help --- TF30162: Task "SharePointP…

Recommend Articles

Where is the DeleteTeamProject.exe in RC?
Is there a version good for me?
with http connection added forms in VB 2…
How many developers are licensed to use …
Disappointed with RTM - so many bugs rem…
Looking for MSDN Premium Professional Su…
Unable to create a Team project
Installing Team Build
Resolving external file references
Rosetta Not Playing Nicely - Help Reques…
VS team edition latest version download …
Project inheriting
Trial Expired, Microsoft Partner and I c…
TestRunConfig in Team System for Develop…
Team system and MS Project