[OOM] Use specific HELM_BIN depending on branch 27/117627/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 9 Feb 2021 08:42:42 +0000 (09:42 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 10 Feb 2021 06:50:22 +0000 (07:50 +0100)
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

jjb/global-templates-helm.yaml
jjb/oom/oom-helm.yaml

index 2697d18..7d4541f 100644 (file)
@@ -56,6 +56,7 @@
 
     <<: *helm_job_boiler_plate
     concurrent: true
+    helm_bin: helm3
 
     scm:
       - gerrit-trigger-scm:
           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}'
 
index 46da258..6a3fed2 100644 (file)
       #!/bin/bash
       set -e -o pipefail
       cd kubernetes/
-      make HELM_BIN=helm3 all
+      make all
     subproject_build_script: |
       #!/bin/bash
       cd kubernetes/
-      make HELM_BIN=helm3 common
-      make HELM_BIN=helm3 {subproject}
+      make common
+      make {subproject}
 
     stream:
       - "master":
           files: "**"
       - "{project-name}-{stream}-verify-helm2":
           files: "**"
-          build-timeout: 240
+          build-timeout: 360
       - "{project-name}-{stream}-verify-helm":
           build_script: "{oom_build_script}"
           files: "**"
-          build-timeout: 240
+          build-timeout: 360
+          stream: master
+      - "{project-name}-{stream}-verify-helm":
+          build_script: "{oom_build_script}"
+          files: "**"
+          build-timeout: 360
+          stream: guilin
+          helm_bin: "helm3.3"
       - "{project-name}-{stream}-merge-helm":
           build_script: "{oom_build_script}"
           files: "**"