BuildCompletionEvent subscribe?

Jan 24, 2012 at 6:12 PM

Hello,

I have been looking for the solution to execute by custom script/code on BuildCompletionEvent for a build definition. Can TFS Deployer be configured to subscribe to this TFS event? If yes, can you please provide the config syntax for the same?

Thanks in Advance.

Regards,

Nirav

 

 

Coordinator
Jan 24, 2012 at 8:52 PM

Hi Nirav,

TFS Deployer contains a small amount code (from a utility library) for listening to BuildCompletionEvent notifications from TFS but it is unused. There is an open issue to add support for this but it is not a high priority at the moment:

http://tfsdeployer.codeplex.com/workitem/7989

If you would like to attempt to implement your own solution, the code in the TfsListener class is probably the best place to start:

http://tfsdeployer.codeplex.com/SourceControl/changeset/view/64858#2380

Regards,

Jason

Jan 25, 2012 at 12:04 PM

You can simply set the build quality at the end of a successful build and TFS Deployer will kick in. I set mine to "Development". That forces the development deployment. If you need help with that, let me know. I made a slight tweak to the build process template.

Jan 25, 2012 at 8:01 PM

Thanks Jason for the quick reply. I have added my vote to up the open issue priority but in the meantime, I would be try to implement my own solution.

Thanks tbeaulieu for your reply.

Mar 27, 2012 at 10:34 AM

can you give an example on how you set the build quality at the end of the build? I'm doing it in the AfeterEndToEndIteration, but TFSDeployer gets triggered too fast - so the Build is still InProgress and TfsDeployer skips the deployment.

thank you