I have made a project and i am trying to build it by jenskin. I am invoking ant script. when any build fails, i want it to send mail to every person who is resposible for failure.
in the project configuration, i am adding email notification in post build option. in console, it shows email sent to "email-id" but i dont receive any email.
How to resolve this issue?
You need to configure Global setting if you haven't done it already. Go to Jenkins > Configure > E-mail Notification. Follow the steps mentioned here and configure the same as per your set up.
You should also check Email-ext plugin which offers many more options to configure.
yes.. I found the answer.. you just need to set the "System Admin e-mail address" in manage_jenkins->configure system->jenkins location
Related
I just installed the slack notification add-on in Jenkins and I can get notification if the build is success/failed as like below:
I wanna add few more things here since I'm very new to this implementation and looking help from experts.
I just wanna add test execution report (.htm) file and send it into this channel along with build number and job URL.
If the build is failed. I just want to capture the build failed message from console log and need to send that message to slack channel instead of saying the build failed.
Can someone help me to achieve this?
I just tried the notification but don't know how to attach the html report and add custom message for failed jobs. If there is any reference that will be very helpful.
User notifications are working properly and if I configure my own user notification it works. But team notifications from TFS are not working.
From my understanding with the first image configuration, when a build in the project fails the user that requested the build should receive a notification.
Am I losing anything?
On the second image is my user configuration that works properly.
Note: "Requested by" is when the users execute the build directly in TFS and "Requested for" is when the user do an action that triggers the build.
Team notification settings
User notification settings
Check whether you have correct Delivery settings:
Finally I figure out why is not working.
The problem is I was setting the notifications at project level, as you can see in the first screenshot of the post, it was set to Develop. So I found two solutions:
1- At projects page: https://MyTfsUrl.com/tfs/MyCollection/_projects You have to select a Team in your project, so then set the notifications and the members of that team will receive the notifications.
As you can see in the image, now is selected Develop/DevOpsDev that is a team and notifications set there are working.
2- Other solution I found, and finally is the one I am using, is to set the notification at collections level on https://MyTfsUrl.com/tfs/MyCollection/_admin/_notifications?tab=Subscriptions
As I want to set notifications for a build fail. I decided that is a good option to inform the user involved in a failed build of all the projects.
I am trying to set Slack reminders via a Jenkins job. We are using the Slack plugin (https://plugins.jenkins.io/slack) which seems to work great for direct messages, but I am unable to set reminders. Running the /remind command in Slack, obviously, works. But when I try to use the same command as a Custom Message, it doesn't. Following is what I have set currently, but it doesn't seem to work ie no reminders are getting set.
The Custom Message field in the Slack plugin is just for messages - it is not parsed by Slack for Slack slash commands that are ordinarily typed by a Slack user in Slack's message entry field.
The Slack plugin appears to label the contents of the Custom Message field as text and wrap other info around it in order to provide the green/amber/red indicator that is displayed to the left of the message, along with the build # and Success/Fail etc. notification.
See https://api.slack.com/docs/message-formatting
I want an email notification to get triggered to the reviewer when i will add him on Gerrit?
The current documentation doesn't support it or mention it any where https://gerrit-review.googlesource.com/Documentation/user-notify.html
i am using gerrit 2.11.5 V.
If any one has done it kindly share your experience
Thanks
in my case it is working now. what i was missing was --the reviewer should enable that project in settings->watched projects, then only on adding reviewer a mail will get triggered to him.
Before that make sure that you have followed the following link https://gerrit-review.googlesource.com/Documentation/user-notify.html
I want to trigger the email notification to certain group of people whenever any test case in MTM fails.
how to write TFS API to achieve the same? is there any solution already available.
Appreciate your help.
When a Test Case failed your Tester should create a Bug with the details of the test failure. You can then have an alert on the creation and update of Bugs.
If it is an automated test as part of a build you can email the tester on build failure so they can create a bug.
If it is an automated test as part of Release Management you can get RM to email the validator (could be the tester) to create the bugs.