TeamCity Product Descriptions in Working Directories

I’m shifting my mindset to what feels most of the day, and I can’t understand what I’m doing wrong.

I have 3 build configurations running on the same agent in my dev block. Validating code from SVN.

I have OctPack installed to create multiple deployment packages. In addition to this, I created a nuspec file for use in the NuGet Pack step. All of these bits work great in testing.

The problem is that the nuspec file packs some sql script files for deployment. Nothing unusual.

The problem is that these sql files disappear from the disk in the working 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, although all content is in SVN.

I tried everything that I could think of, including forced clarification.

All projects use the same VCS Root setting to check “Automatically on the server”.

What can be discarded all these files?

+4
source share
3 answers

Disable the [] Clean output directory check box in the NuGet Pack step.

I had this problem when I set the destination directory for the Nuget package step to the same folder as the .csproj file I was building from.

When a checkmark is checked, she immediately wiped the entire directory after checking.

+9
source

I had a similar error when running on TeamCity:

Could not find files to create the appropriate packages: [myProject / myProject.nuspec] in the section {C: \ TeamCity \ work \ XXXXXXXXXX}

The key for us was that after reading this message, you could interpret it, because it could not find the files in the nuget package.

However, the problem was that he could not find the .nuspec file .

So, this helped us to take a look at the TeamCity working directory and what we lacked to go to the path "myProject" .nuspec above.

+2
source

Another thing to check is to install the Octopack nuget package in a Visual Studio project. I forgot to do this with one of my projects and got the error "Could not find files for creating packages." Further information is available here:

http://help.octopusdeploy.com/discussions/questions/2304-teamcity-804-not-creating-nuget-packages

0
source

Source: https://habr.com/ru/post/1499699/


All Articles