【问题标题】:Accessing Teamcity git Change log in a build step在构建步骤中访问 Teamcity git 更改日志
【发布时间】:2013-02-08 13:18:09
【问题描述】:

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

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

【问题讨论】:

    标签: git bash teamcity


    【解决方案1】:

    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]
    

    编辑:我发现了这个How to compose git log for pending changes in TeamCIty,它可能与您正在尝试做的事情重复。

    【讨论】:

    • 这几乎正是我所需要的,我按照编辑中的链接,正确配置了 teamcity,获得了正确的项目 ID 并将其设置在我们的 CI 上运行。旁注:如果您在 teamcity 上启用了来宾帐户,则可以使用 -user guest:guest 卷曲它以获取访问权限。构建数据可通过访客获得。此外,如果您由于某种原因无法让 git 工作,提交消息可在 teamcity 的 xml API 中获得,您可以四处寻找,您可以通过几个链接跟踪它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-19
    • 1970-01-01
    • 1970-01-01
    • 2012-07-22
    • 1970-01-01
    • 1970-01-01
    • 2014-10-08
    相关资源
    最近更新 更多