How to build the latest git flow release branch in Jenkins?
If I understand correctly you are trying to see if there is a generic way to build branches in jenkins? (correct me if I am wrong)
If thats what your trying to achieve, you can use parameterized builds. Make the branch name as a parameter.In jenkins configuration for the build, you can specify parameter name as BRANCH and reference that in your git clone command (i am assuming your using execute shell)
git clone -b ${BRANCH}
Now everytime you build, jenkins will prompt you for the branch name and you can specify values like origin/master or origin/release etc..
Hope this helps