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
240b9a82
Commit
240b9a82
authored
Nov 14, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
a33d31d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
StageBucket.groovy
src/org/qg/StageBucket.groovy
+2
-2
qgDockerPipeline.groovy
vars/qgDockerPipeline.groovy
+2
-0
No files found.
src/org/qg/StageBucket.groovy
View file @
240b9a82
...
@@ -36,14 +36,14 @@ def docker_build_and_push(buildNumber, branchName, harborGroup, systemName, cont
...
@@ -36,14 +36,14 @@ def docker_build_and_push(buildNumber, branchName, harborGroup, systemName, cont
return
imageTag
return
imageTag
}
}
def
deploy
(
namespace
,
systemName
,
imageTag
,
isDeploy
)
{
def
deploy
(
namespace
,
systemName
,
imageTag
,
tier
,
isDeploy
)
{
if
(
isDeploy
)
{
if
(
isDeploy
)
{
echo
(
"将镜像更新到到Namespace:"
+
namespace
)
echo
(
"将镜像更新到到Namespace:"
+
namespace
)
build
job:
'deployer.Updater'
,
parameters:
[
build
job:
'deployer.Updater'
,
parameters:
[
string
(
name:
'namespace'
,
value:
"${namespace}"
),
string
(
name:
'namespace'
,
value:
"${namespace}"
),
string
(
name:
'name'
,
value:
"${systemName}"
),
string
(
name:
'name'
,
value:
"${systemName}"
),
string
(
name:
'image'
,
value:
"${imageTag}"
),
string
(
name:
'image'
,
value:
"${imageTag}"
),
string
(
name:
'tier'
,
value:
"${
config.
tier}"
)]
string
(
name:
'tier'
,
value:
"${tier}"
)]
}
else
{
}
else
{
echo
"namespace不存在,不执行deploy"
echo
"namespace不存在,不执行deploy"
echo
namespace
echo
namespace
...
...
vars/qgDockerPipeline.groovy
View file @
240b9a82
...
@@ -11,6 +11,8 @@ def call(body) {
...
@@ -11,6 +11,8 @@ def call(body) {
def
isDeploy
=
env
.
IS_DEPLOY
def
isDeploy
=
env
.
IS_DEPLOY
def
buildNumber
=
env
.
BUILD_NUMBER
def
buildNumber
=
env
.
BUILD_NUMBER
def
tier
=
config
.
tier
t
=
gitRepo
.
split
(
"/"
)
t
=
gitRepo
.
split
(
"/"
)
def
gitGroup
=
t
[
0
]
def
gitGroup
=
t
[
0
]
def
systemName
=
t
[
1
]
def
systemName
=
t
[
1
]
...
...
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