Commit 632a51f9 authored by daidekun's avatar daidekun

fixbugs java bugs

parent 15ee785c
...@@ -56,6 +56,10 @@ def prepare_python(contextDir) { ...@@ -56,6 +56,10 @@ def prepare_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"
}
def checkoutUI(branchName, gitRepo) {
if(gitRepo.contains("--")){ if(gitRepo.contains("--")){
t1 = gitRepo.split("/") t1 = gitRepo.split("/")
groups = t1[0].split("--") groups = t1[0].split("--")
......
...@@ -38,7 +38,14 @@ def call(body) { ...@@ -38,7 +38,14 @@ def call(body) {
stage('Checkout') { stage('Checkout') {
_utils.beautyEcho(2, 'Checkout') _utils.beautyEcho(2, 'Checkout')
switch (config.buildType) {
case "lua-ui":
_stage.checkoutUI(branchName, gitRepo)
break
default:
_stage.checkout(branchName, gitRepo) _stage.checkout(branchName, gitRepo)
break
}
} }
stage('Prepare') { stage('Prepare') {
...@@ -48,9 +55,9 @@ def call(body) { ...@@ -48,9 +55,9 @@ def call(body) {
case "java": case "java":
_stage.prepare_java(systemName, contextDir) _stage.prepare_java(systemName, contextDir)
break break
case "ui": /* case "ui":
_stage.prepare_ui(systemName, contextDir) _stage.prepare_ui(systemName, contextDir)
break break*/
case "nodejs": case "nodejs":
_stage.prepare_nodejs(systemName, contextDir) _stage.prepare_nodejs(systemName, contextDir)
break break
...@@ -72,9 +79,9 @@ def call(body) { ...@@ -72,9 +79,9 @@ def call(body) {
case "java": case "java":
_stage.build_java(namespace, originSystemName, contextDir) _stage.build_java(namespace, originSystemName, contextDir)
break break
case "ui": /* case "ui":
_stage.build_ui(namespace, originSystemName, contextDir, gitRepo, branchName, workspace) _stage.build_ui(namespace, originSystemName, contextDir, gitRepo, branchName, workspace)
break break*/
case "nodejs": case "nodejs":
_stage.build_nodejs(namespace, originSystemName, contextDir, gitRepo, branchName, workspace) _stage.build_nodejs(namespace, originSystemName, contextDir, gitRepo, branchName, workspace)
break break
......
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