TeamCity:使用REST API获取工件的完整目录

Chi*_*nke 3 rest teamcity

使用teamcity的REST API,可以通过以下形式的URL检索单个工件

http://myserver.com/httpAuth/app/rest/builds/id:85755/artifacts/files/bin/app.exe
Run Code Online (Sandbox Code Playgroud)

如何获取整个目录?以下内容不起作用:

http://myserver.com/httpAuth/app/rest/builds/id:85755/artifacts/files/bin/
Run Code Online (Sandbox Code Playgroud)

Voi*_*son 5

TCD9 / REST API

GET http:// teamcity:8111 / httpAuth / app / rest / builds / <build_locator> / artifacts / archived / <path>?locator = pattern:<通配符> 

(返回包含指定路径下的工件列表的存档。可选的locator参数可以具有文件,以将文件限制为仅与通配符匹配的文件)媒体类型:application / zip