Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity SVN Commit Message

I'm using automated deployments with TeamCity and Octopus Deploy. Each build is triggered by a commit to the SVN Repository.

I'd like to use the commit message, eg "Made some small changes to the layout page" to be used as the release notes on the Octopus Deploy release that I create. Does anyone know which variable I can use in TeamCity to populate this?

I've used several parameters (vcsroot.name.url, vcsroot.url as recommended on another question) as well as vcsroot.labelingMessage but that just sticks in a default message.

Is this possible? It would be great to send an email to the business test users that informs them exactly what has changed. I can then get the developers to be more descriptive about what they committed.

like image 840
Paul Avatar asked Jul 28 '14 23:07

Paul


1 Answers

There is no parameter in TeamCity that contains commit message. You can get commit message inside your build script using revision number stored in build.vcs.number.<VCS root ID>. For example like this svn log -r <revision_number> --username <user> --password <password> <url>.

like image 62
Alina Mishina Avatar answered Oct 02 '22 23:10

Alina Mishina