2013-02-08 48 views
5

作为构建步骤的一部分,我发布构建,我想访问特定构建的变更日志。特别是git提交消息。访问Teamcity git在构建步骤中更改日志

我不知道如果我可以通过git在构建步骤中做到这一点,或使更改日志我可以访问的参数。任何帮助表示赞赏。

回答

4

git log可能是你的答案:

[email protected]$ 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] 

编辑:我发现这个How to compose git log for pending changes in TeamCIty这可能是你试图做一个副本。

+0

我会调查谢谢 – 2013-02-12 10:23:14

+1

这几乎正是我所需要的,我在编辑中正确地配置了链接,正确配置了teamcity,获得了正确的项目ID并将它设置为在我们的CI上运行。附注:如果您在teamcity上启用了访客帐户,则可以使用-user guest:guest卷曲以访问。构建数据可通过客人访问。另外,如果你无论如何无法让git工作,提交消息可以在teamcity的xml API中找到,并且可以通过几个链接进行跟踪。 – 2013-02-12 13:39:22

相关问题