# Transfering repos to agent based on variable value

**URL:** <https://www.finalbuilder.com/forums/t/transfering-repos-to-agent-based-on-variable-value/5004>\
**Category:** Discussion\
**Created:** [July 1, 2013, 4:03am UTC](https://www.finalbuilder.com/forums/t/transfering-repos-to-agent-based-on-variable-value/5004 "2013-07-01T04:03:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)\
**Post date:** [July 1, 2013, 4:03am UTC](https://www.finalbuilder.com/forums/t/transfering-repos-to-agent-based-on-variable-value/5004/1 "2013-07-01T04:03:36Z")

</div>

In our build setup I want to give developers the option to start a build from their local git repositories.

I have now added a number of theses git repositories to Continua and everything is working fine so far.

I do have one problem however. I could not find a way to transfer only the repository that is actually needed for the build based on the value of a variable that the developer sets when starting the build. Thus initialising a stage takes quite a while because all the repositories need to be transfered.

Is this option missing from Continua or did I overlook something?

---

<div class="post-metadata">

**Author:** ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)\
**Post date:** [July 2, 2013, 1:28am UTC](https://www.finalbuilder.com/forums/t/transfering-repos-to-agent-based-on-variable-value/5004/2 "2013-07-02T01:28:15Z")

</div>

Hi,   
  
 Currently you cannot define which repositories are synced with your configuration based on a variable. Repository rules can be set on a stage that tell Continua which repositories should be synced to an agent. These rules however cannot use variables to dictate which repositories should be used.

---

<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:** [July 2, 2013, 1:46am UTC](https://www.finalbuilder.com/forums/t/transfering-repos-to-agent-based-on-variable-value/5004/3 "2013-07-02T01:46:43Z")

</div>

Hi chillefeld   
  
 My guess is you are trying to achieve ‘personal’ builds before the user pushes their change to the main git repo? It’s a feature we looked at but deferred to a later release. My work around for this is to use feature/personal branches, so the users just push their changes in the feature branch and you can use pattern matching on the trigger to control how feature branches are built.

---

<div class="post-metadata">

**Author:** ![chillefeld](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/chillefeld/32/1333_2.png) [@chillefeld](https://www.finalbuilder.com/forums/u/chillefeld)\
**Post date:** [July 2, 2013, 7:59am UTC](https://www.finalbuilder.com/forums/t/transfering-repos-to-agent-based-on-variable-value/5004/4 "2013-07-02T07:59:18Z")

</div>

Ok. Thanks for the reply. We will try to find some way to make it work for us.
