Commit 8c23ba6f authored by daidekun's avatar daidekun

build 过程彩色化

parent 1f983f00
...@@ -32,11 +32,8 @@ def call(body) { ...@@ -32,11 +32,8 @@ def call(body) {
try { try {
dir (systemName) { dir (systemName) {
stage('Clean') { stage('Clean') {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'xterm']) {
sh 'echo hello world'
_utils.beautyEcho(1, 'Clean') _utils.beautyEcho(1, 'Clean')
} }
}
stage('Checkout') { stage('Checkout') {
_utils.beautyEcho(2, 'Checkout') _utils.beautyEcho(2, 'Checkout')
...@@ -67,6 +64,7 @@ def call(body) { ...@@ -67,6 +64,7 @@ def call(body) {
stage('Build') { stage('Build') {
_utils.beautyEcho(4, 'Build') _utils.beautyEcho(4, 'Build')
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'xterm']) {
switch (config.buildType) { switch (config.buildType) {
case "java": case "java":
_stage.build_java(namespace, originSystemName, contextDir) _stage.build_java(namespace, originSystemName, contextDir)
...@@ -85,6 +83,7 @@ def call(body) { ...@@ -85,6 +83,7 @@ def call(body) {
break break
} }
} }
}
stage('Docker Build And Push') { stage('Docker Build And Push') {
_utils.beautyEcho(5, 'Docker Build And Push') _utils.beautyEcho(5, 'Docker Build And 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