Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity Missing Items in Work Directory Checkouts

I've been pouring over my set up for what feels like most of the day and I cannot figure out what I'm doing wrong.

I have 3 build configurations running on a single agent on my dev box. Checking out code from SVN.

I've got OctPack installed to create a couple of packages for deployment. In addition to this I've created a nuspec file to use in a NuGet Pack step. All of these bits work fine when testing.

The problem is that the nuspec file packages up some sql script files for deployment. Nothing fancy.

The problem is these sql files are disappearing from disk in the work folder. I get:

Cannot start build runner: Failed to find files to create packages matching: [src\database\SqlScriptsPackage.nuspec] under H:\TeamCity-Build\work\a1dbf81458fbab0a.

The entire database directory is empty despite all the contents being in SVN.

I've tried everything I can think of, including a forcing a clean checkout.

All the projects are using the same VCS Root setup to checkout "Automatically on server".

What could be ditching all these files?

like image 317
Jammer Avatar asked Dec 16 '22 07:12

Jammer


1 Answers

Disable the [] Clean output directory checkbox on the NuGet Pack step.

I had this issue where I set the target directory for the Nuget pack step to be the same folder as the .csproj file I was building from.

With the tickbox ticked, it wiped the entire directory immediatly after checking it out.

like image 92
xan Avatar answered Dec 31 '22 12:12

xan