TFS 2015 API remove agent from pool with PowerShell

后端 未结 2 1138
孤独总比滥情好
孤独总比滥情好 2021-01-22 05:17

I\'m working on removing an agent from a pool temporarily, install new software on the buildserver the agent is on, test that it works, and then add the agent to the pool again.

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-22 05:44

    There is no such API to create or remove an agent from the agent pool. And it's not needed to write your own script. When you download the agent, you just need to run a command prompt as Administrator, and then run ConfigureAgent.cmd on your build agent machine:

    C:\Agent\ConfigureAgent.cmd
    

    Then respond to the prompts. Check Deploy an agent on Windows for TFS 2015

提交回复
热议问题