I've researched about how to send e-mails when build fails, but I only found personal options for this issue, changing my alerts configuration.
I want to send e-mails to users signed in the project. How can I configure this in my project configurations?
PS.: I'm using TFS from Visual studio 2013
When you're creating an alert in TFS 2013, you must specify the scope that the alert sites at ("Me" or "Team"). In TFS 2013, each Team Project will have a default team, so you can set the alert to be that specific team's alert, or a sub-team if you only want the alert to go to a subset of the overall Team Project. When you are configuring the alert in the alerts explorer, hit the Subscriber drop-down in the top right, and choose the appropriate team.
This may already be the site you found: http://msdn.microsoft.com/en-us/library/ms181725.aspx (sorry if this isn't what you're asking)
I have some alerts set up to be sent to myself and a few other individuals. And other alerts go to a larger distribution list.
Go to the control panel of your TFS project. It's the same url as your TFS project page which ends with "_admin" (http://yourtfsserver:8080/.../.../projectname/_admin)
Click on the "Alerts" tab. From the left side pane open the "ProjectName Team Alerts" item and select the "Build Alerts". On the main frame you'll find the query options to build team wide build alerts.
Hope this solves your problem.
As an alternative you may use ccTray: http://www.cruisecontrolnet.org/projects/ccnet
Perhaps you will manage to configure it with the help of this stack: Does TFS have anything like CCTray for Build Notifications?
Related
I'm using Visual Studio Team Services (http://visualstudio.com/), with Visual Studio 2012.
I'd like to add a new State Value for WorkItems. After a search I discover that i can edit the process template to achieve that. I've tried the menu item "Team\Team Project Collection Settings\Process Template manager", but i'm getting the following message:
Visual Studio could not retrieve your user permissions from Team Foundation Server.
Contact your Team Foundation Server administrator to determine the cause of the error and the steps to correct the problem.
If the problem persists, contact Microsoft Product Support Services
Details: Access Denied: marlon.brum#gmail.com needs the following permission(s) on the resource $ to perform this action: Administer
I've added my user to every adminstrator group i've found in tfs configuration, for the project and the collection, but i keep getting that message.
How can i add a custom state to WorkItems in Visual Studio Team Services?
Please note that the UI of VSTS has recently been changed. I'm updating my answer to reflect the latest changes but keeping an older copy too!
Update: As of 17th Oct 2018, on Team Services:
Account Home - Click on the Azure DevOps icon in the upper left corner.
Organization Settings - Click on this link in the lower left corner
Process - Click on Process in Boards Group in the list of settings
Select your process
Select the Work Item Type you want add the new state to
Click on States Menu item on the top
Click New State button
Adding a Gif below
For those who are still on the older UI , on Team Services...
Account Home - Click on the team services icon in the upper left
corner.
Process - Mouse over the Gear icon and choose Process
Choose the process you are working in
Click on Product Backlog Item type
Click on the States tab (between Layout and Rules)
Click the New State link
Account Home can be accessed by clicking on the Azure DevOps icon (previously Team Service) in the top-left corner. This page is also the home page of you account and can be accessed by directly jumping using the URL. For example: youraccountname.visualstudio.com/
Process can be accessed from the UI as mentioned in steps above or by using the direct URL youraccountname.visualstudio.com/_settings/process
Hope it helps!
Thanks Microsoft for making it available!
http://lajak.wordpress.com/2013/01/09/tfs-2012-versions-of-team-foundation-server/
Cons: •Can’t customize process template or workitem templates
So it is not possible to add new states on Team Foundation Services.
Nevertheless, "Team\Team Project Collection Settings\Process Template manager" just allows you to up- and download Process Templates, where you can edit the WIT XMLs. A more comfortable way is to use/install TFS PowerTools and use the WIT Editor "Tools -> Process Editor -> Work Item Types -> Open WIT from Server/File".
This feature is not supported by Visual Studio Team Services. It seems this is causing a lot of people (including myself) problems. See here for the (planned) feature request.
I suspect the reason for your permission error is not that you haven't assigned the right permission, but rather that the permission is not available to be assigned.
You need Team foundation Server Admin rights to execute witadmin tasks.
What probably you mean by following is that you have added yourself to default collection admin/project admin.
I've added my user to every adminstrator group i've found in tfs configuration, for the project and the collection,
For that you have two options:
Either request your TFS admin to do this activity for you.
Request you TFS Admin to add you to the TFS Admin Group using TFS Admin Console.
Is there a way to receive an alert (email) in TFS whenever I have a new task?
In TFS 2008: right-click project, Project Alerts and check "When my workitems are changed by others"
Team Foundation Power Tools - Alerts Editor
"Alerts Editor
A GUI tool plug-in to Visual Studio that supports flexible subscription of alerts based on check-in, work item change, or build completion."
For TFS 2010 there is an easy solution for you now, via a plugin which can be downloaded from
CodePlex - Team Alert
It's a simple copy-paste solution which can take you 5 minutes to put in place using the configuration extract listed in the post below. This plugin will also enable this rule to any user in the assigned to value, as opposed of setting up an alert for each user individually.
This post will show the exact configuration you need to perform the alert notification.
Notify AssignedTo user of new work (for a specific TFS project)
the 4 project alerts in TFS are good but I need some more of mine in them. The important one i want is when i create a new bug in TFS i want an email to be sent out.
Is there a way i can create a new alert in the project alerts? If so how?
This is what you are looking for: Team Foundation Power Tools - look for Alert Editor.
Once that is installed you will be able to customize alerts as you wish. It will add a new node under each team project in Team Explorer.
I want to get the build status in TFS (whether it is succeeded or failed). Which classes and methods can be used for this purpose?
You can run Build Notifications, which is similar to CC Tray in that it will continually give you the status of all builds that you're interested in following. To launch the tool, go to...
All Programs-->Microsoft Visual Studio 2010-->Team Foundation Server Tools-->Build Notifications
Click on the Options button to subscribe to whichever builds are on your server. This will now show up in your system tray with a green check box or red X to indicate the status of the builds you've selected.
In Visual Studio 2013 with TFS 2013, you have email alerts from TFS and a Build Notification system tray tool: http://msdn.microsoft.com/en-us/library/ms181725.aspx
However, it usually doesn't show up in the Windows 8 Start screen, even with a search. So, run it manually in most installations from here:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\BuildNotificationApp.exe
The TFS API is mostly documented on MSDN under the Visual Studio SDK: http://msdn.microsoft.com/library/bb130146, however the build APIs are in a different location (in the TFS documentation): http://msdn.microsoft.com/library/cc339575.
These are the same assemblies that tf.exe and Team Explorer (etc.) use.
If you just want the alert (not programmatically): You can right-click on the project in the Team Explorer and select Project Alerts.
You can use AnyStatus to monitor both XAML and vNext builds and lots of other monitors such as Windows Services, HTTP, TCP/IP, Ping, GitHub, Other CI/CD tools, Performance Counters and more.
Disclaimer: I am the author of AnyStatus
Check out the MSBuildCommunityTasks library. It has a Mail task.
Import this into your build project to send the mails.
To enable build notification e-mail alerts, in Team Explorer:
If you are not already connected to the team project that you want to work in, then connect to the team project.
Choose Home, and then choose Settings.
On the Settings page, under Team Project, choose Project Alerts.
Select one or more alert events.
In the Send My Alerts To box, choose Edit and enter the email address of each person who should receive the alerts. Use semicolons to separate multiple email addresses.
more details, see : https://msdn.microsoft.com/en-us/library/ms181725.aspx
I just discovered CatLight which just works with little fuss. Never had any success with AnyStatus. CatLight sits in your tray and notifies you when builds succeed or fail.
Under TFS 2008, you can right click on the TFS Project name (in Team Explorer) and select Project Alerts.
Then pick the A Build Completes alert and put your email address into the Send To field.
I think TFS 2005 also has this feature, but I can't rememeber. It's been awhile. ;)
I like the status email sent by TFS's alerts mechanism when a build breaks.
However I would like to send such an email to the entire team and not rely on the team to subscribe to the alert...
Having a hard time producing a nice and detailed enough message by myself when overriding the "OnBuildBreak" and using the MSBuildCommunityTasks EMail task.
Is there a way to force a TFS alert to be sent to a list of emails?
Can you recommend of a way to send such status notifications?
You could try.
Brian the build bunny
:-)
The Team Build Tray Notification tool what is included in the TFS 2008 Power Tools is very useful for this.
See Buck Hodges' blog for screenshots and more information.
I don't want to dig up an old topic, but for those that stumble upon it two years late (like me), this is built into TFS 2010 now.
Set up an email alias for the team on the mail server, and enter this when subscribing to the mail.
Try the Team Foundation Server Event Subscription Tool.
This allows you to send emails to any address when any TFS event occurs.
Brian the Build bunny is nice but the Nabaztagtag WiFi Rabbit bunny is pretty expensive and is currently out of stock.
The Team Build Tray Notification that comes with TFS is ok, but:
It's damn slow and polling is not configurable
It's too easy to miss the build being broken for projects you care about
Doesn't support different actions for different projects (e.g. show a modal dialog for project #1, but just show a short tray alert for project #2)
Doesn't support different triggers for different people (e.g. show notifications for just me on project #1 or anyone on project #2)
No information on what broke the build (e.g. compiler error, unit test, integration test)
No audible notification if system's on mute
No last build times
So there's an open source project on Google Code that runs in the tray that's available on Google Code: http://code.google.com/p/siren-of-shame/. That project can work independently but it's designed to work with a USB Siren that is available for sale.
I generally like the TFS Build Status Tray by Rob Aquila. Be sure to get the 1.0.1 Beta, as this lets you easily specify the projects to watch using a bit of GUI and also has a notify icon that changes color, so you only need to open the actual build status list when the icon turns red. The 1.0 version had a fixed icon, and only notify toasts in the corner of your screen.
There is also a version of the same tool that is meant to be shown full screen on a wall mounted display for instance.
The July release of TFS 2008 PowerTools adds an "Alert Editor" to Team Explorer. Adding Alerts is a breeze. It has a query tool similar to the Query tool.
In my mind, a open source project named 'Web Deployment Projects' can do this. your can search for it.