Passing "Build Comment" to MSBuild


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.


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.

2. Try to look at Groovy plugin, which alllow you customize build parameters




Please sign in to leave a comment.