# Defining branch names

**URL:** <https://www.finalbuilder.com/forums/t/defining-branch-names/5088>\
**Category:** Discussion\
**Created:** [October 18, 2013, 12:33pm UTC](https://www.finalbuilder.com/forums/t/defining-branch-names/5088 "2013-10-18T12:33:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)\
**Post date:** [October 18, 2013, 12:33pm UTC](https://www.finalbuilder.com/forums/t/defining-branch-names/5088/1 "2013-10-18T12:33:41Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [October 18, 2013, 2:56am UTC](https://www.finalbuilder.com/forums/t/defining-branch-names/5088/2 "2013-10-18T02:56:46Z")

</div>

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%

---

<div class="post-metadata">

**Author:** ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)\
**Post date:** [October 21, 2013, 6:19am UTC](https://www.finalbuilder.com/forums/t/defining-branch-names/5088/3 "2013-10-21T06:19:47Z")

</div>

Works great, thanks!
