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?
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.
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.