Commit a4fd75a6 authored by daidekun's avatar daidekun

fixbugs

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