Subversion: Labeling silently fails?!
TeamCity 4.5.4 Enterprise:
I have configured my build configuration with
VCS checkout mode: Automatically on agent
VCS labeling mode: Successful only
with Labeling pattern: dist-%system.build.number%
Ant runner.
The VCS Root has
URL: https://acme.devguard.com/svn/kolmo/trunk/3_code/main
Labeling rules: /svn/kolmo/trunk=>/svn/kolmo/tags
(Configured so that the check out is smaller (only relevant code),
but tags should include the complete project, including documentation.)
The build runs successfully, but no label is created!
I added myself for build failure notifications, but received no e-mail.
(I do receive e-mail when the build itself fails.)
The "Full" build log shows no error.
The only special case may be that the repository root is
https://acme.devguard.com/svn/kolmo
rather than
https://acme.devguard.com/
Any suggestions?
Please sign in to leave a comment.
I changed the labeling rules to
+:/svn/kolmo/trunk=>/svn/kolmo/tags
because the grayed out text below the labeling rules text area says
"e.g. use +:trunk=>tags to create tags of "trunk" directory under "tags" directory"
Still no label, but with that rules I get an e-mail saying
Labeling failed for root 'copra-trunk-main'
(see http://...)
jetbrains.buildServer.vcs.VcsException: No labeling rules found for checkout rules =>
Is the "+:" on the config page a mistake?
Do I need to configure checkout rules?
Stephen Friedrich wrote:
Hello Stephen,
If your SVN repository root is https://acme.devguard.com/svn/kolmo, the labeling rule should look like:
There is some docs available regarding SVN labeling in TeamCity.
Hope this helps,
KIR
Thanks a lot, of course that works. I have been reading the docs before, but overlooked
the distinction between VCS root and repository root.
(Actually /trunk=>/tags was one of the many labeling rules I tried, but until now I didn't
look closely enough at the error it gave: MKACTIVITY 403 forbidden - I had forgotten to
give the teamcity svn user write access.)
Kirill Maximov wrote: