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
4656298f
Commit
4656298f
authored
Nov 19, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stage
parent
3082cc82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
qgDockerPipeline.groovy
vars/qgDockerPipeline.groovy
+6
-4
No files found.
vars/qgDockerPipeline.groovy
View file @
4656298f
...
@@ -30,17 +30,17 @@ def call(body) {
...
@@ -30,17 +30,17 @@ def call(body) {
node
{
node
{
try
{
try
{
stage
(
'Clean'
)
{
stage
(
'Clean'
)
{
echo
"
Stage[1] Clean
"
echo
"
===============Stage[1] Clean===============
"
_stage
.
clean_dir
()
_stage
.
clean_dir
()
}
}
stage
(
'Checkout'
)
{
stage
(
'Checkout'
)
{
echo
"
Stage[2] Checkout
"
echo
"
===============Stage[2] Checkout===============
"
_stage
.
checkout
(
branchName
,
gitRepo
)
_stage
.
checkout
(
branchName
,
gitRepo
)
}
}
stage
(
'Prepare'
)
{
stage
(
'Prepare'
)
{
echo
"
Stage[3] prepare
"
echo
"
===============Stage[3] prepare===============
"
echo
"buildType is: ${config.buildType}"
echo
"buildType is: ${config.buildType}"
contextDir
=
_utils
.
contextDir
(
workspace
)
contextDir
=
_utils
.
contextDir
(
workspace
)
switch
(
config
.
buildType
)
{
switch
(
config
.
buildType
)
{
...
@@ -63,7 +63,7 @@ def call(body) {
...
@@ -63,7 +63,7 @@ def call(body) {
}
}
stage
(
'Build'
)
{
stage
(
'Build'
)
{
echo
"
Stage[4] Build
"
echo
"
===============Stage[4] Build===============
"
switch
(
config
.
buildType
)
{
switch
(
config
.
buildType
)
{
case
"java"
:
case
"java"
:
_stage
.
build_java
(
namespace
,
systemName
,
contextDir
)
_stage
.
build_java
(
namespace
,
systemName
,
contextDir
)
...
@@ -92,10 +92,12 @@ def call(body) {
...
@@ -92,10 +92,12 @@ def call(body) {
}
}
stage
(
'Deploy'
)
{
stage
(
'Deploy'
)
{
echo
"===============Stage[6] Docker Build And Push==============="
_stage
.
deploy
(
namespace
,
systemName
,
imageTag
,
config
.
tier
,
isDeploy
)
_stage
.
deploy
(
namespace
,
systemName
,
imageTag
,
config
.
tier
,
isDeploy
)
}
}
stage
(
"Clean"
)
{
stage
(
"Clean"
)
{
echo
"===============Stage[7] Clean==============="
_stage
.
clean_images
(
imageTag
)
_stage
.
clean_images
(
imageTag
)
}
}
}
catch
(
err
)
{
}
catch
(
err
)
{
...
...
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