5

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.

3

2 Answers 2

5

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.

Sign up to request clarification or add additional context in comments.

Comments

1

I was able to get it working in TC using the "edit checkout rules".

So, let`s say you have a big root repo (BIG_REPO) where there is a multiple huge subfolders and one file that you want to check out (THE_FILE). This is a way :

  1. Create and attach new SVN repo
  2. As a REPO URL use this kind of URL : https://SvnRepoOfYourCompany/svnrep/BIG_REPO/THE_FILE
  3. Go to the "Edit checkout rules" of the attached repo and use this rule :

    +:. => THE_FILE

  4. Run the build and verify that the file has been indeed checked out

  5. Party hard

Hope this helps. It`s quite bizzare that this is still not a feature in TC... maybe one day.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.