【问题标题】:Teamcity build counter not being passed into AntTeamcity 构建计数器未传递到 Ant
【发布时间】:2011-03-29 09:06:05
【问题描述】:

我正在使用 Teamcity 与 Ant runner 一起构建。

我正在尝试使用以下方法将当前构建计数器传递给“附加 Ant 命令行参数”

-lib %teamcity.build.checkoutDir%/MI/CustomAntTasks/jars/CustomAntTasks.jar -Dlabel={0}

-Dlabel={0} 值作为字面值 {0} 而不是构建计数器的当前值传递到 Ant 脚本。

关于如何正确通过构建计数器(而不是构建号)的任何想法?

【问题讨论】:

    标签: java ant teamcity


    【解决方案1】:

    我相信它可以通过内置参数访问,即您不需要尝试传递它。

    ${build.number}
    

    还有其他值:Predefined Build Parameters

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多