New in 4.5.2: Update fails with "is a directory"

Hi,

I have an Ant build that has been running smoothly, essentially running Checkstyle on our codebase each morning.  I just upgraded Teamcity from 4.0.2 to 4.5.2, and now that build is failing with the following error:

[08:59:19]: [Updating sources] Updating /home/mbickfor/buildAgent/work/15d2b8b8ff114e85/BuildMaster
[08:59:19]: [Updating sources] Updating /home/mbickfor/buildAgent/work/15d2b8b8ff114e85/checkstyle-run.xml
[08:59:19]: [Updating sources] Error while applying patch: /home/mbickfor/buildAgent/work/15d2b8b8ff114e85/checkstyle-run.xml (Is a directory)



Here is a simplified (many projects eliminated) version of my checkout rules:

+:ecom/branches/2009.0.3_Release => ecom
+:BuildMaster/trunk => BuildMaster
+:BuildMaster/trunk/tools/checkstyle/checkstyle-run.xml => checkstyle-run.xml

Checkstyle-run.xml is, obviously, a file, and the intent is to copy it to the root of the workspace.  However, now a directory with that name is being created in the workspace instead, so the build fails.  I tried changing the checkout rule to point to / rather than naming the file, and it still fails except it says that the build directory is a directory.  What do I need to change to make this work?

TIA for any help.

8 comments
Comment actions Permalink

Hello Mark,

  Sorry for delay with the answer.
  What SCM do you use for your builds? How your VCS root is configured? Do you use checkout on agent or checkout on server?

  Kind regards,
  KIR

0
Comment actions Permalink

Thanks Kirill,

SCM is Subversion; the server was recently upgraded from 1.4 to 1.6, and the build in question worked fine under 1.6 until the TC upgrade I spoke of.

VCS root is http://server.domain.com/repo_name/team_name/apps ; all the directories in the checkout rules I mentioned are directly under apps, but there are other projects under apps that are not part of this build.  Each project has its own trunk/branches/tags structure.

The remainder of the VCS settings for this build are:

VCS checkout mode: Automatically on server
Checkout directory:         default
Clean all files before build: ON
VCS labeling:                    disabled



Thanks,
Mark

0
Comment actions Permalink

Hello Mark,

  It looks like your case is really close to this one.

  I believe these have the same source of the problem and probably will be fixed together.
  Please watch it, I'll try to fix this problem ASAP.

  Kind regards,
  KIR

0
Comment actions Permalink

Hello Mark,

  It looks like in TeamCity 4.5 we do not support file-based checkout rules (as we accidentally did in 4.0).
  So workaround is to change checkout rules to include only directories.

  Regards,
  KIR

0
Comment actions Permalink

This is highly disappointing; moving individual files around with the checkout rules is very powerful, and the issue you point to shows that I am not the only person using this functionality.  Can you update the requirements for 4.5 to formally include it (since it was a feature we were using it in 4.0) and then fix the issue?

(Yes, I know it's an obnoxious request and it goes over your head to the product manager, but I am sure it would be greatly appreciated by many people.)

0
Comment actions Permalink

Hello Mark,

   The issue is targeted to the next 4.5.x update and I'm already working on it. My previous post was just to clarify the situation and to provide a hint for a workaround.

   Kind regards,
   KIR

0
Comment actions Permalink

Hello,

   I've added a separate issue for this case: http://jetbrains.net/tracker/issue2/TW-8563

   Regards,
   KIR

0
Comment actions Permalink

Oh, OK, thanks!  I appreciate your responsiveness!  (And thanks as well for adding the issue tracker entry.)

0

Please sign in to leave a comment.