Teamcity does not add the new added project when doing the remote run

If I just modify the code in my project and do a "remote run" to build the project, teamcity successfully find the changes and build my local changes against the trunk.  However, if I add new project and start the remote run, teamcity finds all my changes.  But when I hit run, the build fails as it cannot find the new added project.  Any idea?  Do I need to setup team city?  I setup the runner with msbuild script.

25 comments
Comment actions Permalink

Anyone?  I am trying to get buy-in from my team about using teamcity for our sotware build.  With this issue, I won't be able to get them all buy-in.

0
Comment actions Permalink

Anyone ?????????

0
Comment actions Permalink

Sorry for delay, I overlooked your message. Could you please describe in more details (probably attach build log) what is happening? Specifically I do not understand what do you mean by "TeamCity cannot find new project". Please also provide details about your version control.

0
Comment actions Permalink

Well, the issue is that when I added a brand C# project  to my existing solution project, and did a remote run, the teamcity build server didnot find the new added project.

Here is the error message:

ProjectLayer\MasterLayer\Tests\TestApps\ProjectConsole\mynew.csproj warning MSB4122: Scanning project dependencies for project "ProjectLayer\MasterLayer\Tests\TestApps\ProjectConsole\mynew.csproj" failed. The project file "C:\Work\Source\myproject.sln : error MSB3202: The project file "ProjectLayer\MasterLayer\Tests\TestApps\ProjectConsole\mynew.csproj" was not found.

The build was sucessfully when I built it on locally on my laptop with VS2008.

The remote run works fine with modified code.  But when new added project files or new files added to the existing solution, teamcity build does not find it.

0
Comment actions Permalink

Could you please open a build log of the remote run and check if .sln file wes modified.

TeamCity addin for Visual Studio filders project files and solution files if you pick 'Filter by solution' toolbar button.

Thanks!

0
Comment actions Permalink

I forgot to mention that I used subversion 1.5.1 as 1.6 is having issue with remote build.

0
Comment actions Permalink

Where is the build log for remote run located?

0
Comment actions Permalink

When I selected filter by solution button on the remote run tool bar, I continue getting error messages from Visual Studio (VS2008) saying that "Microsoft Visual Studio has encountered a problem and needs to close"
Any clue?

0
Comment actions Permalink

What version of TeamCity do you use? Could you please attach logs from VS plugin. Those logs are placed in %TEMP%/TeamCity.NET folder.

0
Comment actions Permalink

We have added support for SVN 1.6 in TeamCity 4.1 and 4.5 EAP builds.

0
Comment actions Permalink

You can see only yours personal builds. For that, please, open build configuration page. Open build history and find you personal build listed there. Open that build, select build log/full log.

Thanks!

0
Comment actions Permalink

I continue getting the error when selecting the filter by solution tab in remote build feature and here is the log:

2009-04-24 11:14:17,717[  9568].INFO  nitializer - Started log4net from C:\Program Files\JetBrains\TeamCity\v4.0\Bin\teamcity-log4net.xml
2009-04-24 11:14:17,764[  9568].INFO  rToLog4Net - [OM] Page “JetBrains.UI.Options.RootOptionsPage, JetBrains.Platform.TeamCity.UI, Version=4.0.976.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”.
2009-04-24 11:14:18,170[  9568].INFO  rToLog4Net - JetBrains.TeamCity.Package.TeamCityAddin: initialization finished, 8.469021 seconds elapsed.
2009-04-24 11:16:18,987[  9568].INFO  rToLog4Net - ImageLoader has loaded “notConnected.png” from the assembly “JetBrains.TeamCity.Package, Version=4.0.976.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”.
2009-04-24 11:17:03,238[ocator].INFO  sionHolder - Plugin version: ServerVersion: 4.0.0.10|4.0|8080
2009-04-24 11:17:03,238[  9568].INFO  rToLog4Net - ImageLoader has loaded “connection.png” from the assembly “JetBrains.TeamCity.Package, Version=4.0.976.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”.
2009-04-24 11:17:03,254[  9568].INFO  rToLog4Net - ImageLoader has loaded “connection-bmp.bmp” from the assembly “JetBrains.TeamCity.Package, Version=4.0.976.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”.
2009-04-24 11:17:05,035[ 18612].INFO  sionHolder - Plugin version: ServerVersion: 4.0.0.10|4.0|8080
2009-04-24 11:17:05,769[  9568].INFO  rToLog4Net - ImageLoader has loaded “connected.png” from the assembly “JetBrains.TeamCity.Package, Version=4.0.976.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”.
2009-04-24 11:17:05,769[  9568].INFO  rToLog4Net - ImageLoader has loaded “connected-bmp.bmp” from the assembly “JetBrains.TeamCity.Package, Version=4.0.976.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”.
I am blocking right now as I cannot do the remote run with new project added to the solution.  Please response ASAP.

0
Comment actions Permalink

Do you see .sln/.csproj files checked when sending remote run?
Please attach build log from your failed personal build. In that build log you personal changes are shown.
Thanks!

0
Comment actions Permalink

I had to manually check the .sln and .csproj files before I pressed the Run botton in the remote run window.  Actually, the remote run found all the changes in the files that I made.  But it failed to copy these files to the server build machine.  Attached is the log for for the personal build.



Attachment(s):
Persnal_Build_241.log
0
Comment actions Permalink

What VCS do you use? Do you use agent side checkout? Could you please check weather .sln and .csproj files are readonly in build wokring folder?

Thanks!

0
Comment actions Permalink

I use Subversion 1.5.1
Not sure what you meant "Do you use agent side checkout?"
.sln and .csproj files are not ready only files

The remote run found all the changes in my local machine. However, it failed to copy the changes for new project and files to the build server.

0
Comment actions Permalink

Are .sln and .csproj files readonly on build the build agent?

I wanted to know what checkout type is used for build configuration you're trying to start remote run.
Open build configuration settings on the web ui and select page '2. version control' on the right.

Thanks!

0
Comment actions Permalink

OK here are my VCS checkout settings:

VCS checkout mode: Automatically on server

Checkout directory: C:\<name of directory>

Clean all files before build: Unchecked (if I check the box, the build will fail)

VCS labeling mode: Sucessful only

Choose VCS roots to lable: Unchecked

Also, Ignore externals is checked in the Externals support option.

0
Comment actions Permalink

Are .sln and .csproj files readonly on build the build agent machine?

0
Comment actions Permalink

No.  The .sln and .csproj are not readonly.

0
Comment actions Permalink

I've checked you build log again and found that you personal change had contained two files: change in .sln file and deletion of .csproj file. What kind of change was reported for that .csproj file the remote run? Could you please run svn status <path to that .csproj file> and attach.
Thanks!

0
Comment actions Permalink

I am still not be able to do the remote run with TeamCity plug-in in VS2008.  When I selected the solution file and the new project added in the solution file, the Run button is in active.  Any idea?  Attached is the snapshot of the issue.  I am not able to get buy-in from my team on using TeamCity and TeamCity Plug-in due to this issue.  In this project.  I just added the new project in Visual Studio.



Attachment(s):
TeamCityNewProjectAdded.JPG.jpg
0
Comment actions Permalink

Could you please attach a screenshot of a toolip the is shown on red icon near Run button.

0
Comment actions Permalink

All the changes you are going to send are unversioned. Please add them to Subversion prior to start remote run. You may use svn.exe add command or Click on those files and select Add to Subversion in Windows Explorer if Tourtoise SVN is installed.

0
Comment actions Permalink

Does TeamCity suppose to do this step automatically instead of letting user to add this project to Subversion manually?  Also, if manually added to Subversion, do I need to add the project and all .cs files belong to the project?

0

Please sign in to leave a comment.