Commit 2aa413c3 authored by wentao.suo's avatar wentao.suo

ffff

parent a41f1289
...@@ -84,7 +84,7 @@ def call(body) { ...@@ -84,7 +84,7 @@ def call(body) {
withDockerRegistry([credentialsId: 'harbor-qajenkins', url: "http://192.168.4.36"]) { withDockerRegistry([credentialsId: 'harbor-qajenkins', url: "http://192.168.4.36"]) {
def build_schema = "BUILD_TIME:${timeStemp}\nBUILD_NUMBER:${buildNumber}\nSYSTEM_NAME:${systemName}\nBRANCH_NAME:${branchName}\nCLUSTER:${cluster}" def build_schema = "BUILD_TIME:${timeStemp}\\nBUILD_NUMBER:${buildNumber}\\nSYSTEM_NAME:${systemName}\\nBRANCH_NAME:${branchName}\\nCLUSTER:${cluster}"
echo build_schema echo build_schema
def image = docker.build(imageTag, "--build-arg BUILD_SCHEMA=${build_schema} ${contextDir}") def image = docker.build(imageTag, "--build-arg BUILD_SCHEMA=${build_schema} ${contextDir}")
image.push() image.push()
......
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