0

ccnet操作の正確なシーケンス(ここから取得):

   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.

ステップ3.1がccnetで実行される前にmsbuildタスクを実行する方法はありますか?

問題の説明

「fileLabeller」を使用して、ファイルの内容をccnetラベルで表示しています。ファイルが存在する場合、これは適切に機能します。しかし、万が一ファイルが存在しないとしましょう。このファイルを作成してダミーテキストを設定するmsbuildタスクを呼び出したいと思います。

このmsbuildタスクをprebuildイベントで呼び出しましたが、ラベルの生成がprebuildの前に行われるため、残念ながらこれは機能しませんでした。

ラベルの生成が行われる前に、このmsbuildタスクを呼び出す方法はありますか?

4

1 に答える 1

1

Cruisecontrol.netは、すべての出力を特定のラベルの付いたファイルに記録します。これは、他の何かが起こる前にラベルを決定する必要があることを意味します。ラベルを作成するためにMsbuildを実行する必要がある場合は、独自のラベラーを作成する必要があります。

于 2012-08-25T06:56:25.360 に答える