【问题标题】:Run msbuild task before ccnet generates the label在 ccnet 生成标签之前运行 msbuild 任务
【发布时间】:2012-08-19 08:37:17
【问题描述】:

ccnet操作的确切顺序(取自here):

   1) Wait for the triggers to awaken.
   2) Ask the source control system for a list of the modifications since the last build.
   3) If any modifications were found or if the triggers said "force the build":
           3.1) Generate a label for the build.
           3.2) Run the prebuild tasks in the order specified, failing the build in case of error.
           3.3) Get the source code from the source control system.
           3.4) Run the build tasks in the order specified, failing the build in case of error.
           3.5) If the repository should be labeled:
                   3.5.1) Let the source control system apply the label.
           3.6) Run the publisher tasks.
   4) Go to 1.

有没有办法在 ccnet 中执行步骤 3.1 之前运行一些 msbuild 任务。

问题陈述

我正在使用“fileLabeller”在 ccnet 标签中显示文件的内容。如果文件存在,这很好用。但是假设文件不存在,那么我想调用一个 msbuild 任务来创建这个文件并设置一些虚拟文本。

我在预构建事件中调用了这个 msbuild 任务,但令我沮丧的是,这并没有成功,因为标签生成发生在预构建之前。

有没有办法在标签生成之前调用这个 msbuild 任务?

【问题讨论】:

    标签: msbuild continuous-integration build-process cruisecontrol.net


    【解决方案1】:

    Cruisecontrol.net 会将所有输出记录到具有特定标签的文件中。这意味着必须在其他任何事情发生之前确定标签。 如果您需要运行 Msbuild 来构建标签,您可能需要编写自己的标签器。

    【讨论】:

    • 谢谢 Simon。我为此写了一个自定义贴标机。
    猜你喜欢
    • 2017-05-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多