使用 teamcity 的 REST API 可以通过表单的 URL 检索单个工件
http://myserver.com/httpAuth/app/rest/builds/id:85755/artifacts/files/bin/app.exe
如何获取整个目录?以下不起作用:
http://myserver.com/httpAuth/app/rest/builds/id:85755/artifacts/files/bin/
最佳答案
GET http://teamcity:8111/httpAuth/app/rest/builds/<build_locator>/artifacts/archived/<path>?locator=pattern:<wildcard>
(returns the archive containing the list of artifacts under the path specified. The optional locator parameter can have file to limit the files only to those matching the wildcard) Media-Type: application/zip
关于rest - TeamCity:使用 REST API 获取整个工件目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37862233/