Cannot get VCS labeling to work

Hello,

I have difficulties to get VCS labeling to work. Whatever labeling rules I set for my VCS root results in an error

Labeling process failed: Include rules with empty left part are not allowed in labeling rules

My repository is at https://server/svn/project (this is the topmost directory accessible via SVN).
The particular SVN root to be labeled is located at https://server/svn/project/trunk, labels should go to https://server/svn/project/tags/build-1234

I tried all variations of labeling rules from trunk => tags or /trunk => /tags, /svn/project/trunk => /svn/project/tags etc. but always receive the same error mentioned above.

Any ideas what's going wrong here ?

Lars

10 comments

No ideas? Should I consider this a bug ?

Lars

0

Hello Lars,

   Could you please provide more details about your setup.

   What is VCS root path in TeamCity settings?
   What are checkout rules?
   What is the exact line used for labeling rules?

   Please also attach teamcity-vcs.log from TeamCity/logs directory.

  Thanks,
  KIR

0

Hello,

the corresponding VCS root is set to https://svnserver.de.bayer.cnb:8443/svn/MyProject/trunk and has no checkout rules applied.

I tried all kinds of labeling rules, the error message below occurs with labeling rules set to trunk => tags. I also tried something like / or /trunk on the left hand side, but this yields the same error.

The log reports the following error:


[2010-12-15 13:33:28,160]   WARN [-10 /ajax.html ] -      jetbrains.buildServer.VCS - Failed to set label 'build-2010.2.153.1937'
jetbrains.buildServer.vcs.VcsException: Labeling the path 'trunk/svn/MyProject/trunk' to 'trunk/svn/MyProject/tags/build-2010.2.153.1937' has failed with the error: svn: Path trunk does not exist in revision 1937
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.throwLabelingError(SvnSupport.java:495)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.label(SvnSupport.java:483)
    at jetbrains.buildServer.vcs.impl.VcsLabeler.setLabel(VcsLabeler.java:69)
    at jetbrains.buildServer.vcs.impl.VcsLabeler.setLabel(VcsLabeler.java:30)
    at jetbrains.buildServer.serverSide.impl.FinishedBuildImpl.setLabel(FinishedBuildImpl.java:19)
    at jetbrains.buildServer.serverSide.impl.auth.SecuredBuildFactory$SecuredFinishedBuildImpl.setLabel(SecuredBuildFactory.java:13)
    at jetbrains.buildServer.controllers.SetLabelAction.doProcess(SetLabelAction.java:18)
    at jetbrains.buildServer.controllers.OneParamAction.process(OneParamAction.java:2)
    at jetbrains.buildServer.controllers.BaseActionController.doAction(BaseActionController.java:49)
    at jetbrains.buildServer.controllers.BaseAjaxActionController$1.handleRequest(BaseAjaxActionController.java:46)
    at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:45)
    at jetbrains.buildServer.controllers.BaseAjaxActionController.doHandle(BaseAjaxActionController.java:44)
    at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:73)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:121)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at jetbrains.buildServer.web.SetThreadNameFilter.runChainWithModifiedThreadName(SetThreadNameFilter.java:10)
    at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:1)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:18)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.tmatesoft.svn.core.SVNException: svn: Path trunk does not exist in revision 1937
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnCopyHelper.doCopy(SvnCopyHelper.java:60)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.label(SvnConnection.java:849)
    at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.label(SvnSupport.java:481)
    ... 39 more

Regards,
Lars

0

Lars,

   You definitely cannot use trunk=>tags checkout rules for your case, becase you can specify relative paths only if they appended to your VCS root.
   And if append 'trunk' to  https://svnserver.de.bayer.cnb:8443/svn/MyProject/trunk we get  https://svnserver.de.bayer.cnb:8443/svn/MyProject/trunk/trunk

   For your setup you can only use syntax which starts with '/'.
   For that, we need to find out root of your repository.
   Could you attach output of 'svn info' command, so we can be sure what is it?

   Regards,
   KIR

0

Dear Kirill,

Svn info reports as Repository Root: https://svnserver.de.bayer.cnb:8443/svn/MyProject
And for the working copy URL: https://svnserver.de.bayer.cnb:8443/svn/MyProject/trunk

On the top level of the repository I have directories trunk, tags, and branches only.

Lars

0

Lars, than mapping /trunk=>/tags should work in your case.
If it doesn't, please attach exception for the failure when this mapping is used.

0

Mmmh, in this case the error message is

Failed: Failed to set label 'build-2010.2.153.1937': Labeling the path  'trunk/svn/MyProject/trunk' to  'trunk/svn/MyProject/tags/build-2010.2.153.1937' has failed with the error:  svn: Path trunk does not exist in revision 1937

It seems that TC gets confused with the /svn/MyProject path that is contained in my VCS root (this is a default with Visual SVN server). Is that possible ?

Lars

0

Hello Lars,

   Actually, this way it really looks like a bug. I'll try to reproduce it, though it is really strange. We've had problems with labeling configuration by our users, but in all the cases correct setting of labeling rules resolved the problems. Which version of TeamCity do you use?

  KIR

0

Hello Lars,

   I tried to reproduce your setup, but I still cannot reproduce the problem.

   Could you please attach screenshots of your VCS settings, including VCS root configuration itself and VCS settings for build configuration? Can you send us the logs from TeamCity/logs directory?

    If you consider this a security issue, you can e-mail the settings to teamcity-feedback[ at ]jetbrains.com

   Thanks!
   KIR

0

Please sign in to leave a comment.