2

TFS 2010 コマンド ライン ユーティリティ TF.exe に基づいてカスタム展開アクションを作成しました。展開エージェント サーバーで DOS プロンプトから実行すると、問題なく動作します。

TF view /collection:uri "$source path" > "local path"

ワークスペースを必要とせずに、ファイルがダウンロードされます。ただし、VS2013RM を介して実行すると、エラーが発生します。

Illegal characters in path.

メッセージ列にカーソルを合わせると、次のように表示されます。

The installation command \"my correct command line here\" failed with the exit code \"100\"

何を与える?ある場所では問題なく実行できるのに、別の場所では実行できないのはなぜですか? RM クライアントは、ローカル管理者およびコレクションのサービス アカウントの一部であるネットワーク サービス アカウントで実行されます。

ログを有効にした後

このコマンドをキャプチャできました:

Deployment: **********Installing component using command "C:\DevOps\TfsClient\TF.exe view /collection:http://[removed detail] "$/[removed detail]/MetastoreCS.xml" > "F:\[removed detail]\MetastoreCS.xml""

エラーより

9/24/2014 10:58:10 AM - Information - (12628, 26560) - Deployment: Exception The installation  command \"C:\DevOps\TfsClient\TF.exe view /collection:http://[removed detail] "$/[removed detail]/MetastoreCS.xml" > "F:\[removed detail]\MetastoreCS.xml"\" failed with the exit code \"100\".
4

1 に答える 1

2

リダイレクト文字「>」が問題を引き起こしているようです。

/outputオプションを使用して動作させることができました。tf ビューのドキュメントを参照してください。

C:\DevOps\TfsClient\TF.exe view /collection:http://[removed detail] "$/[removed detail]/MetastoreCS.xml" /output:"F:\[removed detail]\MetastoreCS.xml"
于 2014-09-25T01:08:13.037 に答える