Commit 656a30f4 authored by wentao.suo's avatar wentao.suo

fffff

parent 5b8417f7
...@@ -53,26 +53,15 @@ def call(body) { ...@@ -53,26 +53,15 @@ def call(body) {
stage('checkout & build') { stage('checkout & build') {
_utils.beautyEcho("checkout & build", "stage") _utils.beautyEcho("checkout & build", "stage")
def pacegeDockerInfo = _stage.getDocketPackageImage(config.buildType) def pacegeDockerInfo = _stage.getDocketPackageImage(config.buildType)
arrSystem = systemName.split("--")
docker.image(pacegeDockerInfo["image"]).inside(pacegeDockerInfo["args"]){ for (systemNameSimple in arrSystem) {
checkAndBuild(config.buildType, systemNameSimple, branchName, contextDir)
def project_attr = _stage.project_attr(systemName)
def gitPath = project_attr["gitPath"]
/*checkout code*/
_utils.beautyEcho("checkout", "info")
_stage.checkout(config.buildType, systemName, branchName)
/*prepare config*/
_utils.beautyEcho("prepare config", "info")
_stage.prepare_config(config.buildType, systemName, contextDir)
/*build*/
_utils.beautyEcho("build", "info")
_stage.build(config.buildType, systemName, contextDir)
} }
} }
}
withDockerServer([uri: "tcp://192.168.4.96:2375/"]) {
_utils.beautyEcho("build over", "info") _utils.beautyEcho("build over", "info")
stage('make docker image') { stage('make docker image') {
_utils.beautyEcho("make docker image", "stage") _utils.beautyEcho("make docker image", "stage")
...@@ -121,3 +110,25 @@ def call(body) { ...@@ -121,3 +110,25 @@ def call(body) {
} }
} }
def checkAndBuild(buildType,systemName,branchName,contextDir){
docker.image(pacegeDockerInfo["image"]).inside(pacegeDockerInfo["args"]){
def project_attr = _stage.project_attr(systemName)
def gitPath = project_attr["gitPath"]
/*checkout code*/
_utils.beautyEcho("checkout", "info")
_stage.checkout(buildType, systemName, branchName)
/*prepare config*/
_utils.beautyEcho("prepare config", "info")
_stage.prepare_config(buildType, systemName, contextDir)
/*build*/
_utils.beautyEcho("build", "info")
_stage.build(config.buildType, systemName, contextDir)
}
}
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