Access to Teamcity git Changing the log at build time

As part of the build phase, where I publish the build, I would like to access the changelog for a specific build. In particular, git commit messages.

I'm not sure if I can do this through git at the build stage or make the change log a parameter that I can access. Any help is appreciated.

+5
source share
1 answer

git log most likely your answer:

anew@Wintermute$ git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
* 8e11818 2013-02-05 | Add first rough prototype of json controller. Add naive first model as a placeholder. Add separate contexts
* 6570201 2013-01-30 | Remove DAO layer. Preparation for graph data layer. [4n3w]
* a079c87 2013-01-30 | Cleanup. Wish I had more time for this! [4n3w]

Edit: I found this How to compile git log for pending changes in TeamCIty , which may be a duplicate of the one re trying to do.

+4
source

All Articles