Automatically email the recent changes for a particular build in Hudson - continuous-integration

Is there any way to send an email in Hudson which has the list of recent changes in that build?
For example
Trigger a build and if you go recent changes there we have some recent changes. Once it is success, the email should have the list of the changes that happened in that particular build. After this, say the next build fails (build fail email will be triggered), but it records the changes and these change lists also should be included in next successful build.

You'll first need to install the Email-ext plugin for Hudson.
Inside the project configuration, under Post-build Actions click the Email Notification and Editable Email Notification checkboxes. Instead of having the Content be $PROJECT_DEFAULT_CONTENT you'll want to use a different token. Those are described when you click the help icon (?) for Content Token Reference.
Specifically to your example, add (or edit if it exists) the trigger for Success. Change the Content of the success email to use the token ${CHANGES_SINCE_LAST_SUCCESS, reverse, format, showPaths, changesFormat, pathFormat}. The different options are explained in the reference. If you just want the defaults, simply use ${CHANGES_SINCE_LAST_SUCCESS}

Related

Modify Email link in Sonarqube Email Notification

I have set up an Email notification in SonarQube for project builds
Everything is working fine but I need to change the following part
See it in SonarQube: http://<>domain-name:9000/project/issues?id=attendance%3AAttendance%3Amaster&createdAt=2018-10-23T10%3A17%3A44%2B0000
to
See it in SonarQube: http://<>domain-name:9000/project/issues?id=attendance%3AAttendance%3Amaster only
Can I modify that ?
No, you cannot modify the URLs embedded in email notification messages. And in this particular example, the createdAt parameter is intentionally present to direct you to a page with filtered results so that you see only relevant content. In other words, this is explicitly by design, and it's not customizable.

How can I set up Teamcity to Email out a Release note?

I have a TeamCity server that builds my application and a YouTrack instance set up to track my feature requests/bugs. I have the TeamCity/YouTrack integration setup so the Issue log correctly fills out in TeamCity with the Items that have been closed in YouTrack since the last successful build. How can I set up TeamCity to email a user a nicely formatted email that contains this list of Issues?
this answer has been adopted from here
Open TeamCity in your browser.
Browse to Administration > User Management- Groups > All Users
Select the tab Notification Rules (you see the Email notifier rules by default)
Click on Add new rule
Select Builds from the selected build configuration and choose the builds you want notifications for
On the right hand side where it says Send notification when tick Build is successful
press Save
You should now get an email which has a summary of the changes, eg
Build Compilation :: myproject #2.0. successful (Tests passed: 1288)
Agent: buildagent-01
Changes included: 1 change.
Change 02b88b1b1345 by wturner (1 file): bug1 fixed

CRM 2011 Plugin for Create Email not triggering on Pre-validation

I'm relatively new to the CRM SDK, and I'm trying to write a plugin to alter From/CC fields of an email on Create. It seems when this is registered in Pre-operation, the ActivityParty collection cannot be modified(though things like subject and body can be modified), and this post recommended setting the pipeline stage to Pre-validation.
When I do this the plugin no longer gets triggered. I know this because when remote debugging, breakpoints are only hit when pre-operation is selected. Also, when not remote debugging, none of the other changes get implemented in the plugin code.
Does anyone know what might be preventing this plugin from executing?
When you register plugin on Create message fields To, CC, BCC will be empty. Try register on DeliverIncoming / DeliverPromote messages

TFS 2010 Email Alerts

I found this post, which seems to be an exact duplicate, but I can't figure out how to get the answer to work for me so I'm posting again...
TFS2010: Set up an alert that will email a member in the team when a work item is assigned to them
I want anyone (not everyone) using TFS to receive an email when they are assigned an item or when an item assigned to them changes. So, when the alert happens, the person who is currently assigned the item will receive an email.
I know I can set up this on a per-person basis with Alerts Explorer, but I can't figure out how to do this for everyone at once.
I looked at https://tfsalerts.codeplex.com/, but it looks like it's used to send alerts to groups of people...I only want to send the alert to a single relevant person (the equivalent of #Me). If this tool can do that, I'm not sure how to make it do so.
what you want to do is write a TFS Server Plugin. This plugin will fire whenever a certain event occurs. In your case, you will want to catch the WorkItemChangedEvent. In the notification, you will find old and new values of each field. By checking whether the assigned to field changed, you will know whether the WI has been reassigned.
Once you determined that the WI has been reassigned, you can take the New Value, and go to Active Directory (assuming you're using it), and get the email address. Finally, send a message.
For a code example of writing a robust server plugin (that happens to target the WorkItemChangedEvent, check out this blog post: How to Write a Robust TFS Server Plugin

how do I include the full url of the ftp location in a husdon email after a build and publishied via the ftp plugin?

I am using the hudson "Publish artifacts to FTP" task after a build to put an installer up to a web site.
I would like to automatically add that link to my email.
unfortunately hudson makes up a directory name based on time and date and places the tile there.
Is there a way to get that value and put it in the build success email or otherwise automatically create the full url?
Hopefully you are using the "Hudson Email Extension" Plugin. This gives you many more customization options over the email support built into the core.
If you are, you might consider putting the token:
${ENV, var} - Displays an environment variable
...into the email. You could set an environment variable in your build script to the FTP link and then insert it into the email. I'm sorry I don't use the Publish Artifacts to FTP plugin myself, but you should be able to mimic the way that plugin sets the FTP destination, and then stick it into an environment variable, which the Email Extension Plugin can then use.

Resources