Commit 9c165340 authored by daidekun's avatar daidekun

branches

parent ac2131a9
...@@ -53,9 +53,10 @@ def checkout(branchName, gitRepo) { ...@@ -53,9 +53,10 @@ def checkout(branchName, gitRepo) {
t1 = gitRepo.split("/") t1 = gitRepo.split("/")
groups = t1[0].split("--") groups = t1[0].split("--")
projects = t1[1].split("--") projects = t1[1].split("--")
branches = branchName.split("--")
t1.size().times { t1.size().times {
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@git.quantgroup.cn:${groups[it]}/${projects[it]}.git" git branch: branches[it], credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@git.quantgroup.cn:${groups[it]}/${projects[it]}.git"
} }
} }
else{ else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment