Dynamically set git branch name to build and deploy

Hi,

Currently, we have setup a Jenkin task to trigger a Cloud66 build and deploy. The git branch name (‘develop’) to be build is set statically in the service.yml

We want to be able to set the git branch name to be build and deploy as part of the git flow best practices (release or hot_fix).

Can you suggest what is the best way to do this (dynamically select the git branch name to be built and deploy)?

Thanks

Charles

You must be logged in to answer this question