Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cicdhtj
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
xujian
cicdhtj
Commits
4745d9cb
Commit
4745d9cb
authored
Sep 24, 2024
by
xujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
931e9c6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
Jenkinsfile
Jenkinsfile
+14
-7
No files found.
Jenkinsfile
View file @
4745d9cb
...
...
@@ -148,12 +148,19 @@ pipeline {
}
}
stage
(
'步骤五:
打包镜像
'
){
stage
(
'步骤五:
服务部署
'
){
steps
{
script
{
sh
"echo '加密并拷贝文件'"
withCredentials
([
file
(
credentialsId:
'00789dc5-a86e-427d-9a57-f5d02a52cb6e'
,
variable:
'KUBECONFIG_FILE'
)])
{
for
(
repo
in
repos
){
if
(
repo
.
isUpdate
&&
repo
.
name
==
"BASE"
)
sh
"KUBECONFIG=\$KUBECONFIG_FILE helm install base base-charts/"
if
(
repo
.
isUpdate
&&
repo
.
name
==
"CORE"
)
sh
"KUBECONFIG=\$KUBECONFIG_FILE helm install core core-charts/"
if
(
repo
.
isUpdate
&&
repo
.
name
==
"HTJ"
)
sh
"KUBECONFIG=\$KUBECONFIG_FILE helm install htj htj-charts/"
}
}
}
post
{
success
{
echo
'部署实施'
}
}
}
...
...
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