2015-10-16 119 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