summaryrefslogtreecommitdiffstats
path: root/jjb/global-templates-helm.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-02-09 09:42:42 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-02-10 07:50:22 +0100
commit0da65b9dc6569394f4ef3b0586fa408cd2368496 (patch)
tree710811de62f106de689cfdb03d5eee3461658568 /jjb/global-templates-helm.yaml
parent47840984f104127b1d2f52b4d210b1a23e3b33fb (diff)
[OOM] Use specific HELM_BIN depending on branch
Guilin branch supports only helm < 3.4 whereas helm master supports helm <=3.5.x Therefore, we must be able to choose the right binary for each branch. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I2c193a477f3a920f402d72ece9e2a814a27f756a
Diffstat (limited to 'jjb/global-templates-helm.yaml')
-rw-r--r--jjb/global-templates-helm.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/jjb/global-templates-helm.yaml b/jjb/global-templates-helm.yaml
index 2697d1871..7d4541f37 100644
--- a/jjb/global-templates-helm.yaml
+++ b/jjb/global-templates-helm.yaml
@@ -56,6 +56,7 @@
<<: *helm_job_boiler_plate
concurrent: true
+ helm_bin: helm3
scm:
- gerrit-trigger-scm:
@@ -69,10 +70,13 @@
server: '{server-name}'
project: '{project}'
branch: '{branch}'
+ helm_bin: '{helm_bin}'
files: '{files}'
builders:
- lf-infra-pre-build
+ - inject:
+ properties-content: 'HELM_BIN={helm_bin}'
- shell: '{obj:pre_build_script}'
- shell: '{obj:build_script}'