Azure で Visual Studio Team Services 用のカスタム ビルド サーバーを作成しようとしています。ビルド エージェントと Visual Studio Express を実行中の仮想マシンにインストールし、「デフォルト」プールのビルド エージェントとして VisualStudio.com のプロジェクトに接続しました。
ただし、ビルドを実行しようとすると、次のエラーが発生しました。
No agent found in pool 1 which satisfies the specified demands:
msbuild
visualstudio
vstest
Agent.Version -gtVersion 1.98.1
MSBuild はすでに visualstudio.com の機能リストに含まれていましたが、他の 2 つには含まれていなかったため、次の 2 つの機能を調べてリストにC:\Program Files (x86)
追加しました。
vstest: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow
visualstudio: C:\Program Files (x86)\Microsoft Visual Studio 14.0
その後、少なくともビルドは実行されますが、「アセンブリのテスト」ステップで別のエラーが発生します。Unable to determine the location of vstest.console.exe
エラーメッセージの最も重要な部分は、とにかくここに完全にあると思います:
System.Management.Automation.CmdletInvocationException: Unable to determine the location of vstest.console.exe ---> System.IO.FileNotFoundException: Unable to determine the location of vstest.console.exe
at Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeVSTestCmdlet.GetVsTestLocation()
at Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeVSTestCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at Microsoft.TeamFoundation.DistributedTask.Handlers.PowerShellHandler.Execute(ITaskContext context, CancellationToken cancellationToken, Int32 timeoutInMinutes)
at Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.RunTask(ITaskContext context, TaskWrapper task, CancellationTokenSource tokenSource)
vstest.console.exe
上記で指定したフォルダーを見て、そこにあります。vstest
このフォルダーをシステムに追加しようとしましたPATH
が、違いはありません。
Azure で動作するビルド エージェントを設定するにはどうすればよいですか?