Using teamcity's REST API it is possible to retrieve a single artifact by URLs of the form
http://myserver.com/httpAuth/app/rest/builds/id:85755/artifacts/files/bin/app.exe
How can I obtain an entire directory? The following doesn't work:
http://myserver.com/httpAuth/app/rest/builds/id:85755/artifacts/files/bin/
From 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With