If I understand correctly, are you trying to figure out if there is a general way to create branches in jenkins? (correct me if I am wrong)
If this is what you are trying to achieve, you can use parameterized assemblies. Make the branch name as a parameter. In the jenkins configuration for the assembly, you can specify the parameter name as BRANCH and the link provided in your clone git command (I assume that you are using the execute shell)
git clone -b $ {BRANCH}
Now, every time you build, jenkins will tell you the name of the branch and you can specify values ββlike origin / master or origin / release, etc.
Hope this helps
Nitin source share