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
9 comments
Comment actions Permalink

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

0
Comment actions Permalink
Hi Zdenek,Thanks for reply. If I set VCS checkout mode to "Automatically on server" checkout mode, I am getting following error during build: Failed to build patch for build #18 {build id=18}, VCS root: "source" {instance id=4, parent internal id=4, parent id=Source, description: "vault: http://xxxx/VaultService"}, due to error: nullAlso, if I check buildAgent's work folder, I still don't see source code files.Thank you,Amit
0
Comment actions Permalink

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

0
Comment actions Permalink
Hi Zdenek,Test connection succeedeed on the VCS root configuration UI.- VCS type: SourceGear Vault (experimental)- TeamCity version: TeamCity Professional 8.0.3 (build 27540)- Do TeamCity server and agents run on the same machine? Yes- teamcity-server.log, teamcity-vcs.log: attached.Thanks,Amit

Attachment(s):
log files.zip
0
Comment actions Permalink

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

0
Comment actions Permalink
Hi Zdenek,I am unable to create bug report. It says "Insufficient permissions for creating a new issue". Can you please report it. I am evalating TeamCity right now. With this bug, I don't think I can continue my analysis and purchase the product. When you think issue with be fixed? Will have get patch for the fix to continue my analysis?Thanks,Amit
0
Comment actions Permalink

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

0
Comment actions Permalink

Amit,

could you please provide also the version of SourceGear Vault? thanks

Zdenek

0
Comment actions Permalink
SourceGear Vault version: 6.1.0.531
0

Please sign in to leave a comment.