rest - TeamCity:使用 REST API 获取整个工件目录

标签 rest teamcity

使用 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/

最佳答案

来自 TCD9/REST API

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/

相关文章:

java - Spring 3.1 或更高版本 @RequestMapping 消费/生产

java - 如何使用 RestEasy 验证冗余查询参数?

build - TeamCity 中的快照依赖项和完成的构建触发器之间有什么区别?

.net-core - TeamCity 在测试 .NET Core 项目时不获取 xUnit 测试的结果

TeamCity 参数化 VCS 密码

rest - 在 http 请求中设置 grpc 元数据

java - 套接字异常 : Connection reset - Client Jersey 2. 0 Java 7

设置 TeamCity 时 MySQL 数据库连接出现问题?

.net - TeamCity代理缺少DotNetFramework4.0_x86,但不是吗?

java - Oracle 服务总线 11G REST api Java 连接到 OSB 时出现套接字问题