2015-10-16 108 views

回答

6

如果curl是一个选项,你可以试试这个http请求:

curl http://<user name>:<user password>@<server address>/httpAuth/action.html?add2Queue=<build configuration Id> 

Have a look以获取更多信息。

1

通过命令行触发构建的推荐方式是使用REST API。

curl -u user:password --request POST http://teamcity:8111/app/rest/buildQueue --header "Content-Type:application/xml" --data-binary @build.xml 

的build.xml例如:

<build> 
    <buildType id="HelloWorld_A"/> 
    <lastChanges> 
     <change id="760"/> 
    </lastChanges> 
</build> 

欲了解更多详情,请参阅该文档中的相关section