Commit 36b8cf2b authored by daidekun's avatar daidekun

fixbugs

parent 55f06075
...@@ -46,12 +46,12 @@ def prepare_python(contextDir) { ...@@ -46,12 +46,12 @@ def prepare_python(contextDir) {
sh "cd /home/quant_group/qg-dockerfiles/templates/python; git pull; cd -" sh "cd /home/quant_group/qg-dockerfiles/templates/python; git pull; cd -"
sh "cp -rf /home/quant_group/qg-dockerfiles/templates/python ${contextDir}" sh "cp -rf /home/quant_group/qg-dockerfiles/templates/python ${contextDir}"
} }
/*
def checkout(branchName, gitRepo) { def checkout(branchName, gitRepo) {
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@git.quantgroup.cn:${gitRepo}.git" git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@git.quantgroup.cn:${gitRepo}.git"
} }*/
def checkoutLuaUI(branchName, gitRepo) { def checkout(branchName, gitRepo) {
if(gitRepo.contains("--")){ if(gitRepo.contains("--")){
t1 = gitRepo.split("/") t1 = gitRepo.split("/")
groups = t1[0].split("--") groups = t1[0].split("--")
......
...@@ -38,14 +38,7 @@ def call(body) { ...@@ -38,14 +38,7 @@ def call(body) {
stage('Checkout') { stage('Checkout') {
_utils.beautyEcho(2, 'Checkout') _utils.beautyEcho(2, 'Checkout')
switch (config.buildType) { _stage.checkoutLuaUI(branchName, gitRepo)
case "lua-ui":
_stage.checkoutLuaUI(branchName, gitRepo)
break
default:
_stage.checkout(branchName, gitRepo)
break
}
} }
stage('Prepare') { stage('Prepare') {
......
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