Customize the Email format for Build Completes Notification  
Author Message
Kathirvel





PostPosted: Team Foundation Server - Build Automation, Customize the Email format for Build Completes Notification Top

Hi all,

I need to know how i can approach to customize the email format for the build completes or any other event.... Please help me in this regard.

Thansk in advance, Kathir



Visual Studio Team System17  
 
 
DQM





PostPosted: Team Foundation Server - Build Automation, Customize the Email format for Build Completes Notification Top

If you modify the xml file it will change the format for ALL builds. I don't think it is possible to specify a particular build and send a specific message for it.

A better option might be to override a target (perhaps AfterDropBuild) and insert a Mail task that will send out a mail with the content you'd like. Check out the MSBuild Community tasks for the custom Mail task, or you could create your own.


 
 
RamyaP





PostPosted: Team Foundation Server - Build Automation, Customize the Email format for Build Completes Notification Top

Hi

U could add the following mail task to any target on the execution of which you want a mail to be sent. As DQM said, override the AfterDropBuild to send out the email

" SmtpServer="smtpservername" />

Thanks,

Ramya


 
 
BJHop





PostPosted: Team Foundation Server - Build Automation, Customize the Email format for Build Completes Notification Top

If I wanted to sent a message when a build fails, which target would I overload

Thanks,

BJHop



 
 
BJHop





PostPosted: Team Foundation Server - Build Automation, Customize the Email format for Build Completes Notification Top

I figured it out,

I would overload the "AfterOnBuildBreak" target.