Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
springboot-k8s-example
Project
Project
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
戴巧
springboot-k8s-example
Commits
8685c6f1
Commit
8685c6f1
authored
Jul 21, 2020
by
卢浩元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile-charts
parent
ca0bb5a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Jenkinsfile-charts
jenkins/Jenkinsfile-charts
+4
-4
No files found.
jenkins/Jenkinsfile-charts
View file @
8685c6f1
...
...
@@ -14,9 +14,9 @@ properties(projectProperties)
def
label
=
"mypod-${UUID.randomUUID().toString()}"
podTemplate
(
label:
label
,
cloud:
'kubernetes'
,
containers:
[
containerTemplate
(
name:
'maven'
,
image:
'maven:3.6.0-jdk-8'
,
command:
'cat'
,
ttyEnabled:
true
),
containerTemplate
(
name:
'docker'
,
image:
'
docker
'
,
command:
'cat'
,
ttyEnabled:
true
),
containerTemplate
(
name:
'helm'
,
image:
'
lachlanevenson/k8s-helm:v2.9.1
'
,
command:
'cat'
,
ttyEnabled:
true
,
envVars:
[
containerTemplate
(
name:
'maven'
,
image:
'
harbor.k2software.com.cn/build/
maven:3.6.0-jdk-8'
,
command:
'cat'
,
ttyEnabled:
true
),
containerTemplate
(
name:
'docker'
,
image:
'
harbor.k2software.com.cn/build/docker:latest
'
,
command:
'cat'
,
ttyEnabled:
true
),
containerTemplate
(
name:
'helm'
,
image:
'
harbor.k2software.com.cn/build/helm:v3.2.2
'
,
command:
'cat'
,
ttyEnabled:
true
,
envVars:
[
envVar
(
key:
'KUBECONFIG'
,
value:
'/root/.kube/config'
)])
],
volumes:
[
...
...
@@ -85,7 +85,7 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
sed -i s#lusyoe/k8s-example#${params.REGISTRY_URL}/library/k8s-example:${shortGitCommit}#g charts/values.yaml
"""
sh
"helm upgrade --install k8s-example charts/"
sh
"helm upgrade --install k8s-example charts/
--kubeconfig=/root/.kube/config
"
}
}
...
...
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