I am using a TeamCity Trigger to build everything once there is a commit to svn on the branch. Once successful it send an email notification which includes the VCS changes that caused this build to be triggered. From a TeamCity perspective this works fine.
There are now multiple members on the team who do not have permissions to TC and cannot set up notifications. With this I have decided to use NAnt's <mail>
to send this notification along with the Build number using "${environment::get-variable('BUILD_NUMBER')}"
. This works fine within teamcity. However, I also need to send the Changes that triggered that build in the message of that email notification.
Currently TeamCity formats the VSC changes to the email like this:
Changes included (1 change).
Change 10433 by John Doe (4 files): Issue#245 - Issue description
I am looking to generate the same changes from TeamCity using NAnt. TeamCity defines this format in the common.flt file using the build_changes bean.
**Changes included (${changesLink})
Change ${mod.displayVersion} ${pers} by ${mod.userName} (${modLink}):
<i>${description?trim}</i>**
How can I use this within my NAnt messages? Since TeamCity already know what svn change triggered the build, it will be better to get this change and add it to my NANT messages for the email. Is there is simple way to do this?