【问题标题】:How to seperate output log of a build step in teamcity如何在teamcity中分离构建步骤的输出日志
【发布时间】:2021-10-15 21:52:56
【问题描述】:

我有一个 Python 脚本,它可以同时构建 100 个库和应用程序,这看起来像是 teamcity 中的一大构建步骤。但我想让每个构建看起来像 teamcity 中的一个单独构建步骤,或者至少能够在其中一个构建失败时进行标记。

有没有办法以编程方式设置 teamcity 来调用这些构建,或者在查看 teamcity 作业状态日志时将 python 控制的构建的输出格式化为看起来像单独的步骤?

【问题讨论】:

    标签: python teamcity


    【解决方案1】:

    您可以在构建脚本中使用一些特殊消息来报告消息。

    像这样:

    ##teamcity[message text='<message text>' errorDetails='<error details>' status='<status value>']
    

    或打开/关闭块

    区块开启:

    ##teamcity[blockOpened name='<blockName>' description='<this is the description of blockName>']
    

    区块关闭:

    ##teamcity[blockClosed name='<blockName>']
    

    将其作为脚本的标准输出发送就足够了。

    可能的消息的完整列表here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多