Format of SVN "Included Regions" in Jenkins Format of SVN "Included Regions" in Jenkins jenkins jenkins

Format of SVN "Included Regions" in Jenkins


If your repository is

https://svn.mydomain.com/repos/projects/myfancyproject/trunk

and you only want to build if something changes in documents/cat-pictures, you add the following to your inclusions list:

/trunk/documents/cat-pictures/*

which is 1 on your list.

In subversion, "trunk", "tags" and "branches" are only folders, and while they have seem to become standard names, they could be called "cats", "dogs", and "birds" if you wanted.

The root of your repository is at https://svn.mydomain.com/repos/projects/myfancyproject/, and so you put /trunk/documents/cat-pictures as your included region.

At least this is my understanding.


Sagar's answer (#1 on your list) did not work for me. What did work was the entire Relative URL path (everything after the Repository Root), which are the changed paths you can see in svn log -v.

So my Jenkins Included Regions, to include only "RC" tags:

/code/products/foo/tags/.*RC.*

And two example revisions, showing changed paths that do and don't match:

> svn log -v -l2 svn+ssh://svn.foo.com/svnroot/code/products/foo/tags------------------------------------------------------------------------r175564 | joe | 2016-04-20 09:21:34 Changed paths:   A /code/products/foo/tags/1.1-RC1 1.1 Release Candidate 1------------------------------------------------------------------------r175530 | jane | 2016-04-19 09:40:18Changed paths:   A /code/products/foo/tags/1.01.0 Release------------------------------------------------------------------------

You can also find Relative URL in svn info:

> svn info svn+ssh://svn.foo.com/svnroot/code/products/foo/tagsPath: tagsURL: svn+ssh://svn.foo.com/svnroot/code/products/foo/tagsRelative URL: ^/code/products/foo/tagsRepository Root: svn+ssh://svn.foo.com/svnroot