2016-10-12 14 views
2

を見つけることができませんでしたと言っ失敗した私はNugetインストーラを使用してチームシティーbuilsステップを作成しましたが、私は、私はエラーを取得する手順を実行すると:チームシティーNugetインストーラのステップは、NuGetに実行可能

Updating sources: server side checkout 
[15:35:44][Updating sources] Repository sources transferred: 112.73 KB total 
[15:35:44][Updating sources] Removing C:\TeamCity\buildAgent\work\12dee9c66185ea67 
[15:35:44][Updating sources] Updating C:\TeamCity\buildAgent\work\12dee9c66185ea67 
[15:35:44]Parameter **"teamcity.tool.NuGet.CommandLine.DEFAULT=%teamcity.tool.NuGet.CommandLine.3.4.3%" is not fully resolved, using as is.** 

Step 1/3: Nuget (NuGet Installer) 
[15:25:34][Step 1/3] scan: Searching for nuget.config files 
[15:25:34][scan] Found packages folder: C:\TeamCity\buildAgent\work\12dee9c66185ea67\packages 
[15:25:34][scan] Failed to find repositories.config at C:\TeamCity\buildAgent\work\12dee9c66185ea67\packages\repositories.config 
[15:25:34][scan] Scanning projects in solution file: C:\TeamCity\buildAgent\work\12dee9c66185ea67\Specflow.sln 
[15:25:34][scan] Found project C:\TeamCity\buildAgent\work\12dee9c66185ea67\Specflow\Specflow.csproj 
**[15:25:34][Step 1/3] Failed to find NuGet executable at: C:\TeamCity\buildAgent\work\12dee9c66185ea67\%teamcity.tool.NuGet.CommandLine.DEFAULT% 
[15:25:34][Step 1/3] Step Nuget (NuGet Installer) failed with unexpected error** 

しかし、私はNugetをダウンロードしています。下記のexeはスクリーンショットです: enter image description here

私には何が欠けていますか?どんな助けでも大歓迎です! ありがとうございます。

答えて

8

これで私の頭を壊した後、私は解決策を見つけることができました。チームシティーでnuget.exeをダウンロードする時には

- 管理>統合>ツール> Nuget.exe>インストール済みバージョン> 3.4.3

チームシティーエージェントがすでに新しいビルドを実行しよう&を実行している場合、エージェントは新しいインストール(この場合はnuget.exe)を検出することができず、失敗します。

ソリューション - エージェントを再起動 - >コマンドプロンプトはC:\チームシティー\ buildAgent \ビン> agent.batを停止力 、その後 C:\チームシティー\ buildAgent \ binに>スタートagent.batを。 teamcity.tool.NuGet.CommandLine.DEFAULT

  • 値:

    • 設定パラメータ
    • 名新しいパラメータの追加パラメータ> PROJECT_NAME>はビルドステップ>>管理にアクセスしてください。小さなボックスを参照してください。 select-%teamcity.tool.NuGet.CommandLine.3.4.3%
    • 保存

    ビルドを実行

    Nugetインストーラのステップはうまく動作し、パッケージを復元します。

  • +0

    あなた自身の回答を受け入れることができます。 – xeon48

    関連する問題