Commit 9003d10f authored by 卢浩元's avatar 卢浩元

优化配置

parent 16f2796b
......@@ -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-cfg', mountPath: '/kaniko/.docker')
secretVolume(secretName: 'docker-config', mountPath: '/kaniko/.docker')
],
annotations: [
podAnnotation(key: "sidecar.istio.io/inject", value: "false")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment