Commit 342f7e17 authored by 卢浩元's avatar 卢浩元

Update Jenkinsfile-charts

parent 7e11392e
...@@ -81,7 +81,10 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [ ...@@ -81,7 +81,10 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
container('helm') { container('helm') {
stage('helm deploy') { stage('helm deploy') {
sh "sed -i \"s/lusyoe\\/k8s-example/${params.REGISTRY_URL}\\/lusyoe\\/k8s-example:${shortGitCommit}/g\" charts/values.yaml" sh label: "replace config", script: """
sed -i s#lusyoe/k8s-example#${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}#g charts/values.yaml
"""
sh "helm upgrade --install k8s-example charts/" sh "helm upgrade --install k8s-example charts/"
} }
} }
......
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