Commit db63b829 authored by wentao.suo's avatar wentao.suo

ffff

parent 05d74e5f
...@@ -85,7 +85,7 @@ def call(body) { ...@@ -85,7 +85,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}\",\"BUILD_NUMBER\":\"${buildNumber}\",\"SYSTEM_NAME\":\"${systemName}\",\"BRANCH_NAME\":\"${branchName}\",\"CLUSTER\":\"${cluster}\"}" def build_schema = "{\"BUILD_TIME\":\"${timeStemp}\",\"BUILD_NUMBER\":\"${buildNumber}\",\"SYSTEM_NAME\":\"${systemName}\",\"BRANCH_NAME\":\"${branchName}\",\"CLUSTER\":\"${cluster}\"}"
echo build_schema
def image = docker.build(imageTag, "--build-arg BUILD_SHCEMA=${build_schema} ${contextDir}") def image = docker.build(imageTag, "--build-arg BUILD_SHCEMA=${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