Alex Rivera | Logout

TeamCity Zipped Artifact Dependency

Asked 2011-01-07T20:32:49.563
9

When on the artifacts page in TeamCity, there is an option to download all the artifacts as a zip file.

I was wondering if you can set up dependent build configurations to actually grab the zipped version of the artifacts?

I realize I could zip all the artifacts in the project configuration that initially creates them, but I'd rather not do that.

Alternatively, I could use something like Nant to zip them once they are brought over, but I would imagine that the transfer of these artifacts could probably go a bit faster if the files being sent were zipped in the first place.

Is anyone aware of a way to transfer the zipped artifacts from each of the other projects or if this is supported by TeamCity?

Edit
Report

1 Answer

0

Probably, you could obtain zipped artifacts manually, in your first build step, by constructing URL to the dependent configuration. In the build, you can get parameters of your dependent builds, which can help you to build the URL.

URL looks like: http://your.server/(guestAuth|httpAuth)/repository/downloadAll/bt457/12345:id/artifacts.zip

where bt457 - id of your build configuration 12345 - build id of the dependent build, which you should be able to obtain in your build as system property dep.bt457.teamcity.build.id

read more here: http://confluence.jetbrains.net/display/TCD6/Predefined+Build+Parameters#PredefinedBuildParameters-DependenciesProperties

All of this not very elegant, but it should work

answered 2011-03-30T15:01:38.670

Your Answer