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
demo
springboot-k8s-example
Commits
9003d10f
Commit
9003d10f
authored
Nov 19, 2020
by
卢浩元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化配置
parent
16f2796b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Jenkinsfile-kaniko
jenkins/Jenkinsfile-kaniko
+4
-4
No files found.
jenkins/Jenkinsfile-kaniko
View file @
9003d10f
...
...
@@ -3,9 +3,9 @@
def
projectProperties
=
[
[
$class
:
'BuildDiscarderProperty'
,
strategy:
[
$class
:
'LogRotator'
,
numToKeepStr:
'5'
]],
parameters
([
string
(
name:
'DOCKER_USER'
,
defaultValue:
''
,
description:
'docker用户名'
),
string
(
name:
'DOCKER_PASSWORD'
,
defaultValue:
''
,
description:
'docker用户密码'
),
string
(
name:
'REGISTRY_URL'
,
defaultValue:
'
docker.io
'
,
description:
'docker仓库地址'
)
string
(
name:
'DOCKER_USER'
,
defaultValue:
'
admin
'
,
description:
'docker用户名'
),
string
(
name:
'DOCKER_PASSWORD'
,
defaultValue:
'
K2pass!!
'
,
description:
'docker用户密码'
),
string
(
name:
'REGISTRY_URL'
,
defaultValue:
'
harbor.poc.paas.com
'
,
description:
'docker仓库地址'
)
])
]
...
...
@@ -22,7 +22,7 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
volumes:
[
hostPathVolume
(
hostPath:
'/root/.kube'
,
mountPath:
'/root/.kube'
),
hostPathVolume
(
hostPath:
'/root/.m2'
,
mountPath:
'/root/.m2'
),
secretVolume
(
secretName:
'
jenkins-docker-cf
g'
,
mountPath:
'/kaniko/.docker'
)
secretVolume
(
secretName:
'
docker-confi
g'
,
mountPath:
'/kaniko/.docker'
)
],
annotations:
[
podAnnotation
(
key:
"sidecar.istio.io/inject"
,
value:
"false"
)
...
...
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