TeamCity doesn't pull source code from Valut
Hi, I am new to TeamCity and evaulating it for my requirements. I could successfully created Vault connection in VCS Roots. Now I am trying to setup C# project and compile it using MSBuild.I have selected following in Version Control Settings:- VCS checkout mode: Do not checkout file automatically- Checkout directory: Auto- Clean all files before build: Unchecked- VCS labeling more: Do not lableI have selected following in Build Step:- Runner type: MSBuild- Build file path: csproj file path in Vault ($/a/b/c/d/e.csproj)- Working directory: <blank>- MSBuild version: Microsoft .NET Framework 2.0- MSBuild ToolsVersion: 2.0- Run platform: x86- Targets: <blank>- Command line parameters: <blank>But I am getting following error when I build run: Failed to start MSBuild.exe. Failed to find project file at path: C:\TeamCity\buildAgent\work\b2d19ff205cab8f1\$\a\b\c\d\e.csproj. Process exited with code -42. When I checked C:\TeamCity\buildAgent\work\b2d19ff205cab8f1\$\a\b\c\d\ folder, it is empty. TeamCity didn't download any source code from Vault.How can I resolve this issue? Won't TeamCity automatically pull all sources (recursively) from csproj file folder from Vault? Am I missing any setup?ThanksAmit
Please sign in to leave a comment.
Hello Amit,
Since you selected VCS checkout mode "Do not checkout files automatically" TeamCity does not download files from VCS. This option expects that your build script performs the checkout. Please look at this guide http://confluence.jetbrains.com/display/TCD8/VCS+Checkout+Mode. In you case try to use "Automatically on server" checkout mode.
regards
Zdenek
Hi Amit,
please try "Test connection button" on the VCS root configuration UI if it works. I also need some additional info:
- VCS type
- TeamCity version
- Do TeamCity server and agents run on the same machine? If not, check the timezones on both machines are synchronized
- teamcity-server.log, teamcity-vcs.log
regards
Zdenek
Attachment(s):
log files.zip
Hi Amit,
i'm affraid it's a bug, please report it with attached log files to our tracking system where you can observe the progress http://youtrack.jetbrains.com
regards,
Zdenek
Hello Amit,
I created the following bug issue http://youtrack.jetbrains.com/issue/TW-32484. I can't say when the issue would be resolved but since this is a bug I expect it to be solved in the next build. Please observe the issue for more information...
regards
Zdenek
Amit,
could you please provide also the version of SourceGear Vault? thanks
Zdenek