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
cd8ae161
Commit
cd8ae161
authored
Apr 23, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
ee8076d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
StageBucketTke.groovy
src/org/qg/docker_new/StageBucketTke.groovy
+3
-6
No files found.
src/org/qg/docker_new/StageBucketTke.groovy
View file @
cd8ae161
...
@@ -76,7 +76,7 @@ def project_attr(systemName) {
...
@@ -76,7 +76,7 @@ def project_attr(systemName) {
return
res_json
return
res_json
}
}
def
update_microservice
(
namespace
,
name
,
image
,
tier
,
domain
)
{
def
update_microservice
(
namespace
,
name
,
image
,
tier
,
domain
)
{
dest_url
=
"http://172.30.220.22:3003/k8s/service/modifyImage"
dest_url
=
"http://172.30.220.22:3003/k8s/service/modifyImage"
response
=
httpRequest
httpMode:
"POST"
,
response
=
httpRequest
httpMode:
"POST"
,
...
@@ -88,7 +88,7 @@ def update_microservice(namespace, name, image, tier,domain) {
...
@@ -88,7 +88,7 @@ def update_microservice(namespace, name, image, tier,domain) {
"image":"${image}",
"image":"${image}",
"label":"${tier}",
"label":"${tier}",
"type":"${tier}",
"type":"${tier}",
domain:'${domain}'
"domain":"${domain}"
}"""
,
}"""
,
url:
dest_url
url:
dest_url
...
@@ -560,13 +560,10 @@ def deploy(namespace, systemName, imageTag, tier, isDeploy) {
...
@@ -560,13 +560,10 @@ def deploy(namespace, systemName, imageTag, tier, isDeploy) {
if
(
isDeploy
==
"true"
)
{
if
(
isDeploy
==
"true"
)
{
def
projectAttr
=
project_attr
(
systemName
)
def
projectAttr
=
project_attr
(
systemName
)
def
host
=
projectAttr
[
"host"
]
def
host
=
projectAttr
[
"host"
]
echo
"host is : ${host} "
def
hostArray
=
host
.
split
(
"\\."
)
def
hostArray
=
host
.
split
(
"\\."
)
def
hostFirst
=
hostArray
[
0
]
echo
"hostFirst is : ${hostFirst} "
imageTag
=
imageTag
.
replaceAll
(
"ccr.ccs.tencentyun.com/"
,
""
)
imageTag
=
imageTag
.
replaceAll
(
"ccr.ccs.tencentyun.com/"
,
""
)
_utils
().
beautyEcho
(
"[新集群][deployV2]将镜像更新到到Namespace:"
+
namespace
,
"info"
)
_utils
().
beautyEcho
(
"[新集群][deployV2]将镜像更新到到Namespace:"
+
namespace
,
"info"
)
update_microservice
(
namespace
,
systemName
,
imageTag
,
tier
,
host
First
)
update_microservice
(
namespace
,
systemName
,
imageTag
,
tier
,
host
Array
[
0
]
)
}
else
{
}
else
{
_utils
().
beautyEcho
(
"isDeploy == false,不执行deploy"
,
"info"
)
_utils
().
beautyEcho
(
"isDeploy == false,不执行deploy"
,
"info"
)
}
}
...
...
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