Commit 8c23ba6f authored by daidekun's avatar daidekun

build 过程彩色化

parent 1f983f00
...@@ -32,10 +32,7 @@ def call(body) { ...@@ -32,10 +32,7 @@ def call(body) {
try { try {
dir (systemName) { dir (systemName) {
stage('Clean') { stage('Clean') {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'xterm']) { _utils.beautyEcho(1, 'Clean')
sh 'echo hello world'
_utils.beautyEcho(1, 'Clean')
}
} }
stage('Checkout') { stage('Checkout') {
...@@ -66,23 +63,25 @@ def call(body) { ...@@ -66,23 +63,25 @@ def call(body) {
} }
stage('Build') { stage('Build') {
_utils.beautyEcho(4, 'Build') _utils.beautyEcho(4, 'Build')
switch (config.buildType) { wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'xterm']) {
case "java": switch (config.buildType) {
_stage.build_java(namespace, originSystemName, contextDir) case "java":
break _stage.build_java(namespace, originSystemName, contextDir)
case "ui": break
_stage.build_ui(namespace, originSystemName, contextDir, gitRepo, branchName, workspace) case "ui":
break _stage.build_ui(namespace, originSystemName, contextDir, gitRepo, branchName, workspace)
case "nodejs": break
_stage.build_nodejs(namespace, originSystemName, contextDir, gitRepo, branchName, workspace) case "nodejs":
break _stage.build_nodejs(namespace, originSystemName, contextDir, gitRepo, branchName, workspace)
case "python": break
_stage.build_python(namespace, originSystemName, contextDir) case "python":
break _stage.build_python(namespace, originSystemName, contextDir)
default: break
echo "未知的buildType: ${config.buildType}" default:
break echo "未知的buildType: ${config.buildType}"
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