13 lines
405 B
Groovy
13 lines
405 B
Groovy
def call(String releaseName, Map values = [:]) {
|
|
container('argocd') {
|
|
def argocdCommand = "argocd app set ${releaseName}"
|
|
|
|
values.each { key, value ->
|
|
argocdCommand += " --helm-set ${key}=${value}"
|
|
}
|
|
|
|
sh "${argocdCommand}"
|
|
sh "argocd app sync ${releaseName}"
|
|
echo "Updated ArgoCD application ${releaseName} with dynamic parameters!"
|
|
}
|
|
} |