Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity: Get a whole directory of artifacts using REST API

Tags:

rest

teamcity

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/
like image 631
chtenb Avatar asked Dec 01 '25 09:12

chtenb


1 Answers

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

like image 126
VoiceOfUnreason Avatar answered Dec 04 '25 07:12

VoiceOfUnreason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!