Commit a4fd75a6 authored by daidekun's avatar daidekun

fixbugs

parent 2bc75d0f
...@@ -48,20 +48,9 @@ def prepare_python(contextDir) { ...@@ -48,20 +48,9 @@ def prepare_python(contextDir) {
sh "cp -rf /home/quant_group/qg-dockerfiles/templates/python ${contextDir}" sh "cp -rf /home/quant_group/qg-dockerfiles/templates/python ${contextDir}"
} }
def checkout(branchNames, systemNames) { def checkout(branchName, gitRepo) {
arrBranchName = branchNames.split("--") arrSystem = systemNames.spit("--")
arrSystemName = systemNames.split("--") git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@git.quantgroup.cn:${gitRepo}.git"
i = 0
for (branchName in arrBranchName) {
response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemNames}"
def res_json = jsonParse(response.content)
def gitGroup = res_json["gitGroup"]
git branch: arrBranchName[i], credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: "git@git.quantgroup.cn:${gitGroup}/${systemName}.git"
i = i + 1
}
} }
def build_java(namespace, systemName, contextDir) { def build_java(namespace, systemName, contextDir) {
......
...@@ -11,9 +11,9 @@ def call(body) { ...@@ -11,9 +11,9 @@ def call(body) {
def isDeploy = env.IS_DEPLOY def isDeploy = env.IS_DEPLOY
def buildNumber = env.BUILD_NUMBER def buildNumber = env.BUILD_NUMBER
/* t = gitRepo.split("/") t = gitRepo.split("/")
def gitGroup = t[0]*/ def gitGroup = t[0]
def originSystemName = gitRepo def originSystemName = t[1]
def systemName = originSystemName.toLowerCase() def systemName = originSystemName.toLowerCase()
def harborGroup = "library" def harborGroup = "library"
......
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