Teamcity:如何发送休息 api 请求以将某些内容添加到构建队列并 运行 它在指定代理上
Teamcity: how to send a rest api request to add something to the buildqueue and run it on a specified agent
基本上我知道如何执行 post 请求以向构建队列添加内容以及如何指定参数,但我不知道我需要按顺序提供哪个 xml在特定代理上构建 运行。
以下命令应该对此有所帮助:-
http://testuser:testpassword@myteamcity.com/httpAuth/action.html?add2Queue=mybuild&agentId=1
要知道agentid..
转到代理并观察浏览器中的 URL,它应该为您提供所有详细信息:-
https://myteamcity.com/agentDetails.html?**id=1&agentTypeId=1&realAgentName=BuildAgent1**
您可以使用任何代理详细信息来指定代理。
如果有帮助,请告诉我!
基本上我知道如何执行 post 请求以向构建队列添加内容以及如何指定参数,但我不知道我需要按顺序提供哪个 xml在特定代理上构建 运行。
以下命令应该对此有所帮助:-
http://testuser:testpassword@myteamcity.com/httpAuth/action.html?add2Queue=mybuild&agentId=1
要知道agentid.. 转到代理并观察浏览器中的 URL,它应该为您提供所有详细信息:-
https://myteamcity.com/agentDetails.html?**id=1&agentTypeId=1&realAgentName=BuildAgent1**
您可以使用任何代理详细信息来指定代理。 如果有帮助,请告诉我!