Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
global-jenkinsfile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
global-jenkinsfile
Commits
0e0f8ea7
Commit
0e0f8ea7
authored
Apr 12, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fff
parent
39be93da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
Utils.groovy
src/org/qg/docker_new/Utils.groovy
+40
-0
qgCiPipeline.groovy
vars/qgCiPipeline.groovy
+2
-2
No files found.
src/org/qg/docker_new/Utils.groovy
View file @
0e0f8ea7
...
...
@@ -41,6 +41,46 @@ def beautyEcho(content, type) {
}
def
beautyEcho_tmp
(
content
,
type
)
{
red
=
"31"
green
=
"32"
blue
=
"34"
purple
=
"35"
darkgreen
=
"36"
result
=
""
switch
(
type
)
{
case
"info"
:
content
=
" ➢➢➢➢➢ \n${content} \n ➢➢➢➢➢"
result
=
"\033[${blue}m${content}\033[0m"
break
case
"success"
:
content
=
" ✔✔✔✔✔ \n${content} \n ✔✔✔✔✔"
result
=
"\033[${green}m${content}\033[0m"
break
case
"fail"
:
content
=
" ✘✘✘✘✘ \n${content} \n ✘✘✘✘✘"
result
=
"\033[${red}m${content}\033[0m"
break
case
"stage"
:
content
=
" ✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩ \n ${content} \n ✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩"
result
=
"\033[${purple}m${content}\033[0m"
break
default:
result
=
content
break
}
ansiColor
(
'xterm'
)
{
echo
result
}
}
def
copyDockerFiles
()
{
}
...
...
vars/qgCiPipeline.groovy
View file @
0e0f8ea7
...
...
@@ -28,7 +28,7 @@ def call(body) {
def
_stage
=
new
org
.
qg
.
docker_new
.
StageBucket
()
def
_utils
=
new
org
.
qg
.
docker_new
.
Utils
()
ansiColor
(
'xterm'
)
{
System
.
out
.
println
(
"++++++++++"
)
_utils
.
beautyEcho
(
"[CLUSTER:${CLUSTER}] [GIT_REPO:${GIT_REPO}] [BRANCH_NAME:${BRANCH_NAME}] [BUILD_TYPE:${BUILD_TYPE}] [TIER:${TIER}]"
,
"info"
)
...
...
@@ -90,7 +90,7 @@ def call(body) {
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment