Commit 47da790c authored by daidekun's avatar daidekun

debugs

parent 75818a10
...@@ -4,11 +4,7 @@ import org.qg.docker.Utils; ...@@ -4,11 +4,7 @@ import org.qg.docker.Utils;
import groovy.json.JsonSlurperClassic; import groovy.json.JsonSlurperClassic;
def debug() { def debug() {
res_json = project_attr("pinjamancepat-credit-review-ui") Utils.beautyEcho("debug", "info")
gitPath = res_json["gitPath"]
host = res_json["host"]
echo gitPath
echo host
} }
def before_prepare(contextDir) { def before_prepare(contextDir) {
...@@ -174,7 +170,7 @@ def dockerbuild_and_push(buildNumber, branchName, harborGroup, systemName, conte ...@@ -174,7 +170,7 @@ def dockerbuild_and_push(buildNumber, branchName, harborGroup, systemName, conte
} }
echo "=================镜像地址=================" echo "=================镜像地址================="
echo imageTag Utils.beautyEcho(imageTag, "info")
echo "=========================================" echo "========================================="
return imageTag return imageTag
......
...@@ -104,7 +104,7 @@ def call(body) { ...@@ -104,7 +104,7 @@ def call(body) {
stage('Deploy') { stage('Deploy') {
_utils.beautyEcho("Docker Build And Push", "stage") _utils.beautyEcho("Docker Build And Push", "stage")
def deploy_log = _stage.deploy(namespace, systemName, imageTag, config.tier, isDeploy) def deploy_log = _stage.deploy(namespace, systemName, imageTag, config.tier, isDeploy)
_utils.beautyEcho(deploy_log, "blue") _utils.beautyEcho(deploy_log, "info")
} }
stage("Clean") { stage("Clean") {
...@@ -119,6 +119,7 @@ def call(body) { ...@@ -119,6 +119,7 @@ def call(body) {
_stage.clean_images(imageTag) _stage.clean_images(imageTag)
} }
currentBuild.result = 'FAILED' currentBuild.result = 'FAILED'
_utils.beautyEcho(err, "fail")
throw err throw err
} }
} }
......
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