2014-05-09 2 views

답변

4

인 TeamCity는 내장이 기능이 있는지 모르겠어요 해결책은 REST API 요청을 사용할 수 ... 연결된 에이전트를 포함하는 XML 문서를 반환합니다

GET http://teamcity:8111/httpAuth/app/rest/agents?includeDisconnected=false 

.... :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<agents-ref> 
    <agent href="/httpAuth/app/rest/agents/id:2" id="2" name="Agent2"/> 
    <agent href="/httpAuth/app/rest/agents/id:3" id="3" name="Agent3"/> 
    <agent href="/httpAuth/app/rest/agents/id:1" id="1" name="Agent1"/> 
</agents-ref> 

는이 요청리스트가 변경된 경우 이메일을 전송 한 후 연결된 에이전트의 이름에 대한 XML 문서를 구문 분석하고 조사하여 원하는 언어로 응용 프로그램을 작성할 수 있습니다.

관련 문제