"List Subversion Tags" - and branches and trunk?

2,678 views
Skip to first unread message

Jeff Dege

unread,
May 12, 2014, 12:47:44 PM5/12/14
to jenkins...@googlegroups.com

According to the help description, List Subversion tags is supposed to:

Notice that you can set the Repository URL field to a Subversion repository root rather than just pointing to a tags dir (ie, you can set it to https://svn.jenkins-ci.org rather than https://svn.jenkins-ci.org/tags). In that case, if this repository root contains the trunk, branchesand tags folders, then the dropdown will allow the user to pick the trunk, or a branch, or a tag.

I have a repository that contains a number of different projects, each of which has a ./trunk, ./branch, ./tag structure. When I set the Repository URL to the root of a project, I only see branch, tag, trunk, I don't see the branches in ./branch or the tags in ./tag.

Is this only supposed to work when the URL is pointing to a repository root? Do many people actually create a separate repository for each and every project? I'd not have expected so.

Or is this a bug? Or am I simply doing something wrong?


Les Mikesell

unread,
May 12, 2014, 1:00:47 PM5/12/14
to jenkinsci-users
I don't know much java, but I'd guess it has something to do with:

private static final String SVN_BRANCHES = "branches";
private static final String SVN_TAGS = "tags";
private static final String SVN_TRUNK = "trunk";
(per usual subversion conventions) in:
https://github.com/jenkinsci/subversion-plugin/blob/master/src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java

Functionally, subversion doesn't really care what your directories are
named, but sometimes conventions matter.

--
Les Mikesell
lesmi...@gmail.com

Jeff Dege

unread,
May 12, 2014, 1:33:15 PM5/12/14
to jenkins...@googlegroups.com
That very well could be the problem.

Thanks.

Sent from my NOOK


Les Mikesell <lesmi...@gmail.com> wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/4OpQ3BSSdyo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vitaliy Krasheninnikov

unread,
May 12, 2014, 2:56:48 PM5/12/14
to jenkins...@googlegroups.com
Hi Jeff,
You may specify regexp in tags filter. Like the following.

parameterized build settings (with parameter type of "list subversion tags"):
Name: branch
Repository URL: svn://vcs.local/main/projectA
Tags filter: trunk|(tags|branches)/.*
Default value: trunk

and use it later at project's SCM settings:
Repository URL: svn://vcs.local/main/projectA/${branch}

it works in any part of the SVN repo.

12.05.2014, 21:33, "Jeff Dege" <jd...@jdege.us>:
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
Regards,
Vitaliy Krasheninnikov
ma...@krushik.ru

Jeff Dege

unread,
May 13, 2014, 10:20:25 AM5/13/14
to jenkins...@googlegroups.com
I've been unable to make this work.

Only "trunk" shows up in the dropdown. The pattern only seems to be applied one directory deep.

BTW - despite my earlier post, my repository does use "branches" and "tags", plural, as is the standard convention.

I' m running Jenkins on Windows - could this be an OS-dependant problem.

Reply all
Reply to author
Forward
0 new messages