Duplicates Finder (.NET) Can't Find Files in Duplicates Report Tab

Hello,

I'm having trouble getting the Duplicates Finder (.NET) to show the file contents in the Duplicates report tab.  My checkout directory is blank and the VCS checkout mode is set to 'Do not checkout files automatically'.  In the Duplicates finder (.NET) Build Step settings, I gave an absolute path to my branch folder that exists on my build server, which is c:\perforce\etc....  The build runner works okay and finds duplicate code.  In the Duplicates report tab, though, when I click on a file, I get 'File not found: ../../../../Perforce/etc....' when trying to view the contents of the file.

I've tried changing the checkout mode settings and checkout directory but still can't get it to work.  I'm using TeamCity 6.0.1 (build 15816).

Any help would be greatly appreciated.

Thanks!

4 comments
Comment actions Permalink

I noticed some errors in the TeamCity logs, here is one in the VCS log:

[2011-01-21 10:44:55,243]   INFO [4&startLine=96 ] -      jetbrains.buildServer.VCS - Couldn't find ../../../../Perforce/etc.../Helper.cs in build myProjcet :: myBulidConfig 7273 on myBuildAgent. Started Fri Jan 21 10:43:16 EST 2011, finished Fri Jan 21 10:44:10 EST 2011. Status NORMAL Duplicates found: 4 (+4 -4), will try get latest version of the file
jetbrains.buildServer.vcs.VcsFileNotFoundException: Unable to find ../../../../Perforce/etc.../Helper.cs in VCS for build 7273
 at jetbrains.buildServer.vcs.impl.VcsManagerImpl.getFileContent(VcsManagerImpl.java:53)



Does anyone have any ideas?  Pavel, Kirill, Yegor, Eugene, Marina? :)
Does this look like a bug or more of an improper configuration?
0
Comment actions Permalink

Hello,

More of improper configuration. It's supposed those files are checked out from VCS, not some folder somewhere.
In general, without VCS we can't get file content as at the moment of build.

0
Comment actions Permalink

Interesting.  I tried VCS checkout modes 'Automatically on server' and 'Automatically on agent'.  Doing this caused the build agent to copy the source files into the work directory.  It still won't display the file contents, though, in the Duplicates Report in the UI.  I see similar errors in the vcs log, except this time without any '../../../../'.

0
Comment actions Permalink

Have you changed Finder settings to use relative paths?
Could you post a screenshot of the build step and result.xml report - here or to teamcity-feedback[at]jetbrains.com

Thanks
Michael

0

Please sign in to leave a comment.