2
我想通过命令行运行在Teamcity中创建的构建作业。是否可以通过命令行运行teamcity构建?如果是,那么对此的命令是什么?Run Teamcity通过命令行构建
我想通过命令行运行在Teamcity中创建的构建作业。是否可以通过命令行运行teamcity构建?如果是,那么对此的命令是什么?Run Teamcity通过命令行构建
如果curl
是一个选项,你可以试试这个http请求:
curl http://<user name>:<user password>@<server address>/httpAuth/action.html?add2Queue=<build configuration Id>
Have a look以获取更多信息。
通过命令行触发构建的推荐方式是使用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。