Commit 8685c6f1 authored by 卢浩元's avatar 卢浩元

Update Jenkinsfile-charts

parent ca0bb5a8
......@@ -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"
}
}
......
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