in jenkins-pipeline-shared-libraries/vars/githubscm.groovy [91:99]
def createBranch(String branchName) {
try {
sh "git checkout -b ${branchName}"
} catch (Exception e) {
println "[ERROR] Can't create branch ${branchName} on repo."
throw e
}
println "[INFO] Created branch '${branchName}' on repo."
}