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
8b88f60c
Commit
8b88f60c
authored
Apr 16, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.quantgroup.cn:QA/global-jenkinsfile
parents
c0e7635f
b2fd7ea4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+5
-5
qgDockerPiplineWithDockerSlave.groovy
vars/qgDockerPiplineWithDockerSlave.groovy
+1
-1
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
8b88f60c
...
@@ -20,14 +20,14 @@ def contextMkdir(key) {
...
@@ -20,14 +20,14 @@ def contextMkdir(key) {
def
imageTag
(
harborGroup
,
k8sSystemName
,
safeBranchName
,
timeStemp
){
def
imageTag
(
harborGroup
,
k8sSystemName
,
safeBranchName
,
timeStemp
){
def
imageTag4_3
=[:]
def
imageTag4_3
6
=[:]
def
imageTag4_4
=[:]
def
imageTag4_4
=[:]
imageTag4_3
[
"harborHost"
]=
"http://192.168.4.3
"
imageTag4_3
6
[
"harborHost"
]=
"http://192.168.4.36
"
imageTag4_3
[
"imageTag"
]
=
"192.168.4.3
/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
imageTag4_3
6
[
"imageTag"
]
=
"192.168.4.36
/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
imageTag4_4
[
"harborHost"
]=
"http://192.168.4.4"
imageTag4_4
[
"harborHost"
]=
"http://192.168.4.4"
imageTag4_4
[
"imageTag"
]
=
"192.168.4.4/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
imageTag4_4
[
"imageTag"
]
=
"192.168.4.4/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
return
[
imageTag4_3
,
imageTag4_4
]
return
[
imageTag4_3
6
,
imageTag4_4
]
}
}
def
init_dependency
()
{
def
init_dependency
()
{
...
@@ -400,7 +400,7 @@ def check_and_build(buildType,systemName,branchName,contextDir){
...
@@ -400,7 +400,7 @@ def check_and_build(buildType,systemName,branchName,contextDir){
def
dockerbuild_and_push
(
imageTagInfo
,
buildNumber
,
systemName
,
branchName
,
cluster
,
timeStemp
,
contextDir
){
def
dockerbuild_and_push
(
imageTagInfo
,
buildNumber
,
systemName
,
branchName
,
cluster
,
timeStemp
,
contextDir
){
//systemName == originSystemName
//systemName == originSystemName
def
harbor_host
=
imageTagInfo
[
"harborHost"
]
def
harbor_host
=
imageTagInfo
[
"harborHost"
]
def
imageTa
b
=
imageTagInfo
[
"imageTab
"
]
def
imageTa
g
=
imageTagInfo
[
"imageTag
"
]
stage
(
'Docker Build And Push'
)
{
stage
(
'Docker Build And Push'
)
{
withDockerRegistry
([
credentialsId:
'harbor-qajenkins'
,
url:
harbor_host
])
{
withDockerRegistry
([
credentialsId:
'harbor-qajenkins'
,
url:
harbor_host
])
{
...
...
vars/qgDockerPiplineWithDockerSlave.groovy
View file @
8b88f60c
...
@@ -82,7 +82,7 @@ def call(body) {
...
@@ -82,7 +82,7 @@ def call(body) {
_utils
.
beautyEcho
(
"Deploy To K8s Cluster image: ${imageTag} to:${namespace}"
,
"stage"
)
_utils
.
beautyEcho
(
"Deploy To K8s Cluster image: ${imageTag} to:${namespace}"
,
"stage"
)
}
}
_stage
.
deploy
(
namespace
,
_systemName
,
imageTagInfo
[
0
][
"imageTag"
],
config
.
tier
,
isDeploy
)
_stage
.
deploy
(
namespace
,
_systemName
,
imageTagInfo
s
[
0
][
"imageTag"
],
config
.
tier
,
isDeploy
)
}
}
...
...
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