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
8c23ba6f
Commit
8c23ba6f
authored
Dec 25, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build 过程彩色化
parent
1f983f00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
qgDockerPipeline.groovy
vars/qgDockerPipeline.groovy
+20
-21
No files found.
vars/qgDockerPipeline.groovy
View file @
8c23ba6f
...
...
@@ -32,10 +32,7 @@ def call(body) {
try
{
dir
(
systemName
)
{
stage
(
'Clean'
)
{
wrap
([
$class
:
'AnsiColorBuildWrapper'
,
'colorMapName'
:
'xterm'
])
{
sh
'echo hello world'
_utils
.
beautyEcho
(
1
,
'Clean'
)
}
_utils
.
beautyEcho
(
1
,
'Clean'
)
}
stage
(
'Checkout'
)
{
...
...
@@ -66,23 +63,25 @@ def call(body) {
}
stage
(
'Build'
)
{
_utils
.
beautyEcho
(
4
,
'Build'
)
switch
(
config
.
buildType
)
{
case
"java"
:
_stage
.
build_java
(
namespace
,
originSystemName
,
contextDir
)
break
case
"ui"
:
_stage
.
build_ui
(
namespace
,
originSystemName
,
contextDir
,
gitRepo
,
branchName
,
workspace
)
break
case
"nodejs"
:
_stage
.
build_nodejs
(
namespace
,
originSystemName
,
contextDir
,
gitRepo
,
branchName
,
workspace
)
break
case
"python"
:
_stage
.
build_python
(
namespace
,
originSystemName
,
contextDir
)
break
default:
echo
"未知的buildType: ${config.buildType}"
break
_utils
.
beautyEcho
(
4
,
'Build'
)
wrap
([
$class
:
'AnsiColorBuildWrapper'
,
'colorMapName'
:
'xterm'
])
{
switch
(
config
.
buildType
)
{
case
"java"
:
_stage
.
build_java
(
namespace
,
originSystemName
,
contextDir
)
break
case
"ui"
:
_stage
.
build_ui
(
namespace
,
originSystemName
,
contextDir
,
gitRepo
,
branchName
,
workspace
)
break
case
"nodejs"
:
_stage
.
build_nodejs
(
namespace
,
originSystemName
,
contextDir
,
gitRepo
,
branchName
,
workspace
)
break
case
"python"
:
_stage
.
build_python
(
namespace
,
originSystemName
,
contextDir
)
break
default:
echo
"未知的buildType: ${config.buildType}"
break
}
}
}
...
...
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