Defining branch names

we are using gitflow to define our repositories. This means that we have a develop and master branch which are responsible for the releases. Our nightly build and production releases are exactly the same with 2 differences:

  1. Versioning (we have a single step where we change this)
  2. Branch name


Now I have several actions where I need to use the repository, so I used this:

$Source.Catel_develop$\deployment\FinalBuilder\Continua.BuildSolution.fbp7

However this makes it hard to manage it all. Now I have 2 questions:

  1. Can we use constants in the variable? For example: $Source.Catel_%branchname%$ ?
  2. Is there a way to use the generic $source$ without having to specify the branch name? I tried $source$, but that fails.


Thanks!

No, the expression syntax doesn’t allow embedding variable references inside object references.

The default repository rule is :

$Source$ > Source

Which is a short cut for : put each repository in a folder (with the name of the repo) under the /Source folder in the build workspace.
e.g:
$Source.Repo_A$ > Source/Repo_A
$Source.Repo_B$ > Source/Repo_B

You don’t have to use $Source.RepoName$ when referring to paths in actions, so you could just do this :

/Source/Catel_%branch%

Works great, thanks!