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
967aec88
Commit
967aec88
authored
Apr 16, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cefac928
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
StageBucket.groovy
src/org/qg/docker_new/StageBucket.groovy
+4
-4
No files found.
src/org/qg/docker_new/StageBucket.groovy
View file @
967aec88
...
...
@@ -20,10 +20,10 @@ def contextMkdir(key) {
def
imageTag
(
harborGroup
,
k8sSystemName
,
safeBranchName
,
timeStemp
){
def
imageTag4_3
=[:]
def
imageTag4_3
6
=[:]
def
imageTag4_4
=[:]
imageTag4_3
[
"harborHost"
]=
"http://192.168.4.3
"
imageTag4_3
[
"imageTag"
]
=
"192.168.4.3
/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
imageTag4_3
6
[
"harborHost"
]=
"http://192.168.4.36
"
imageTag4_3
6
[
"imageTag"
]
=
"192.168.4.36
/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
imageTag4_4
[
"harborHost"
]=
"http://192.168.4.4"
imageTag4_4
[
"imageTag"
]
=
"192.168.4.4/${harborGroup}/${k8sSystemName}:${safeBranchName}-${timeStemp}"
...
...
@@ -400,7 +400,7 @@ def check_and_build(buildType,systemName,branchName,contextDir){
def
dockerbuild_and_push
(
imageTagInfo
,
buildNumber
,
systemName
,
branchName
,
cluster
,
timeStemp
,
contextDir
){
//systemName == originSystemName
def
harbor_host
=
imageTagInfo
[
"harborHost"
]
def
imageTa
b
=
imageTagInfo
[
"imageTab
"
]
def
imageTa
g
=
imageTagInfo
[
"imageTag
"
]
stage
(
'Docker Build And Push'
)
{
withDockerRegistry
([
credentialsId:
'harbor-qajenkins'
,
url:
harbor_host
])
{
...
...
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