Commit b32f598e authored by daidekun's avatar daidekun

git path

parent 65a1d227
...@@ -51,13 +51,8 @@ def prepare_python(contextDir) { ...@@ -51,13 +51,8 @@ def prepare_python(contextDir) {
} }
def checkout(branchName, gitRepo) { def checkout(branchName, gitRepo) {
echo "git remote site is:" git_path = project_attr(systemName)["gitPath"]
if (gitRepo in ["QG/di-ting"]) { git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: git_path
echo "git@gitabc.xyqb.com:${gitRepo}.git"
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@gitabc.xyqb.com:${gitRepo}.git"
}else {
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@git.quantgroup.cn:${gitRepo}.git"
}
} }
def checkout_lua_ui(branchName, gitRepo) { def checkout_lua_ui(branchName, gitRepo) {
...@@ -79,12 +74,8 @@ def checkout_lua_ui(branchName, gitRepo) { ...@@ -79,12 +74,8 @@ def checkout_lua_ui(branchName, gitRepo) {
dir (project) { dir (project) {
echo "git remote site is:" echo "git remote site is:"
if (gitRepo in ["QG/di-ting-ui"]) { git_path = project_attr(project)["gitPath"]
echo "git@gitabc.xyqb.com:${gitRepo}.git" git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@gitabc.xyqb.com:${gitRepo}.git"
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@gitabc.xyqb.com:${gitRepo}.git"
}else {
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@git.quantgroup.cn:${gitRepo}.git"
}
} }
} }
} }
......
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