Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one get all the artifacts as a zip using TeamCity Rest API?

The Docs show this

/repository/downloadAll/BUILD_TYPE_ID/BUILD_SPECIFICATION

for getting all of your artifacts as a zip file, but that isn't using the REST API. Is there a way in the REST API do do the same thing? The Docs seem to indicate that the repository links are only there for backwards compatibility.

like image 719
Jeff Martin Avatar asked Jan 04 '13 20:01

Jeff Martin


People also ask

Where are artifacts stored in TeamCity?

By default, the artifacts are stored under the <TeamCity Data Directory\>/system/artifacts directory which can be changed. You can configure an external artifacts storage to replace the built-in one. Build artifacts can also be uploaded to the server while the build is still running.

How do you download builds on TeamCity?

What you're actually looking to do is create artifacts in TeamCity. Artifacts are normally a build output which are then attached to the individual build runs so that you can download and review them at a later date. There's a walk through including the creation of build artifacts in You're deploying it wrong!

What is artifact path in TeamCity?

Artifact Paths Build artifacts are files produced by the build which are stored on TeamCity server and can be downloaded from the TeamCity UI or used as artifact dependencies by other builds.


1 Answers

You can use this URL, it works for me:

http://<TeamcityUrl>/httpAuth/app/rest/builds/id:<BuildId>/artifacts/archived

I use TeamCity 9.

like image 181
algebraic Avatar answered Sep 28 '22 00:09

algebraic