Passing "Build Comment" to MSBuild

Hi,

When I Run a custom build, I have an option to enter a Build Comment (see attachment). Is there a way I can pass this comment to MSBuild?

My build script has a Task that sends out emails to our Customer Service Dept after a successful build. It would be nice if I could include the Build Comment in this email as well. Can this be done? I'm using TeamCity 6.5.

Thanks,
Roger



Attachment(s):
teamcity.jpg
1 comment
Comment actions Permalink

Hello Roger,

I suggest you to try one of these options:

1. Instead of using build comment field, you can create a system build parameter (not configuration nor environment). System parameters are passed into the build scripts of the supported runners.
 You can configure such a parameter to ask you for a value each time you run the build.
 http://confluence.jetbrains.com/display/TCD8/Defining+and+Using+Build+Parameters+in+Build+Configuration

2. Try to look at Groovy plugin, which alllow you customize build parameters
 http://confluence.jetbrains.com/display/TW/Groovy+plug

regards,

Zdenek

0

Please sign in to leave a comment.