Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checkout just one file from SVN using Team City

Is this possible? Right now I'm using build artifact dependencies (I save the file from another build config in a .zip and add that artifact as a dependency in the build config where I need it). But I think this way would be more efficient.

I've seen that this can be done using command-line svn, but if possible, I'd like to do it using Team City's vcs root + checkout rules concepts.

like image 692
dario_ramos Avatar asked Apr 12 '12 16:04

dario_ramos


People also ask

How do I checkout a single file in SVN?

"It is not possible to check out a single file. The finest level of checkouts you can do is at the directory level."

What is checkout directory in TeamCity?

The build checkout directory is a directory on the TeamCity agent machine where all the sources of all builds are checked out into. If you use the agent-side checkout mode, the build agent checks out the sources into this directory before the build.

What is VCS checkout?

VCS checkout rules allow you to check out a part of the configured VCS root and to map directories from the version control to subdirectories in the build checkout directory on a build agent.


1 Answers

It can't be done by Team City itself; its checkout rules only handle directories. In fact, users have requested this feature and it's still pending. I have just voted for it. If you see this and need it, please vote as well.

Guess I'll do it from the command line. Here's how.

like image 145
dario_ramos Avatar answered Sep 30 '22 08:09

dario_ramos