访问Teamcity git在构建步骤中更改日志

Ben*_*ter 6 git bash teamcity

作为我发布构建的构建步骤的一部分,我希望能够访问特定构建的更改日志.特别是git提交消息.

我不确定我是否可以在构建步骤中通过git执行此操作,或者使更改日志成为我可以访问的参数.任何帮助表示赞赏.

Ane*_*new 5

git log 很可能是你的答案:

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]
Run Code Online (Sandbox Code Playgroud)

编辑:我发现了如何为TeamCIty中的挂起更改编写git日志,这可能与您尝试执行的操作重复.