Define build version number based on part of svn branch url?

Hi,
Basically I would like to be able to define the build version based on part of the SVN url used for the build.  A simplified example:

VCS is configured to build:

<SVN ROOT>/branches/RC_*

If we created a new release candidate for example:

<SVN ROOT>/branches/RC_18

Then is it possible to configure the build number format to include the release candidate version?
e.g.
     1.0.0_18

I had been given some guidence it should be possible by setting the release trigger to something like:

+:branches/RC_(*)

But then i have no idea how to reference that in the 'Build number Format' parameter
Many thanks!
Iain

1 comment
Comment actions Permalink

Hi,

Feature branches are not supported for SVN. For SVN we recommend to setup different build configurations to checkout specific branch. To simplify this process you can create single shared VCS and create a template with this VCS and checkout rules with parameter +:branches/RC_%branch_number% and also include this parameter into the build number.
Then in each configuration inherited from this template you can define custom value for %branch_number%.

We have a feature request http://youtrack.jetbrains.com/issue/TW-18911 and a related forum post http://devnet.jetbrains.com/message/5492985#5492985. Please read comments for more information and vote.

0

Please sign in to leave a comment.