summaryrefslogtreecommitdiffstats
path: root/jjb/oom
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-02-24 16:35:24 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-02-24 16:35:24 +0100
commit4655b062d5c1e954e975bf9493c66f5cf8c306c7 (patch)
tree6a9585d183262118b45f83e9112388739ae30f2e /jjb/oom
parent2e3e553f3265ee1e17748842f798eac47a5f9ee0 (diff)
[OOM] Create a new project for legacy branches
As helm compatibility is complex, let's break OOM verify job into two project: one for "old" versions and one for the new versions that doesn't support helm v2. Issue-ID: OOM-1 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Ib7d3fa8b4d84eada23f84f2639df3d0d383ec9cb
Diffstat (limited to 'jjb/oom')
-rw-r--r--jjb/oom/oom-helm-legacy.yaml84
-rw-r--r--jjb/oom/oom-helm.yaml40
2 files changed, 89 insertions, 35 deletions
diff --git a/jjb/oom/oom-helm-legacy.yaml b/jjb/oom/oom-helm-legacy.yaml
new file mode 100644
index 000000000..e70dac9c6
--- /dev/null
+++ b/jjb/oom/oom-helm-legacy.yaml
@@ -0,0 +1,84 @@
+---
+- project:
+ name: oom-legacy
+ project-name: oom-legacy
+ project: oom-legacy
+ mvn-settings: oom-settings
+ mvn-global-settings: global-settings
+ archive-artifacts: ""
+ build-node: ubuntu1804-helm-2c-1g
+ pre_build_script: !include-raw-escape: shell/helm-repo-init.sh
+ oom_build_script: |
+ #!/bin/bash
+ source helm.prop
+ set -e -o pipefail
+ cd kubernetes/
+ make HELM_BIN=$HELM_BIN all
+ subproject_build_script: |
+ #!/bin/bash
+ cd kubernetes/
+ make HELM_BIN=$HELM_BIN common
+ make HELM_BIN=$HELM_BIN {subproject}
+
+ helm_bin:
+ - helm3.5
+ - helm3.3
+
+ exclude:
+ - stream: guilin
+ helm_bin: helm3.5
+ - stream: frankfurt
+ helm_bin: helm3.5
+ - stream: frankfurt
+ helm_bin: helm3.3
+ - stream: dublin
+ helm_bin: helm3.5
+ - stream: dublin
+ helm_bin: helm3.3
+ - stream: casablanca
+ helm_bin: helm3.5
+ - stream: casablanca
+ helm_bin: helm3.3
+
+ stream:
+ - "guilin":
+ branch: "guilin"
+ - "frankfurt":
+ branch: "frankfurt"
+ - "dublin":
+ branch: "dublin"
+ - "casablanca":
+ branch: "casablanca"
+
+ subproject:
+ - "aai":
+ files: "kubernetes/aai/**"
+ - "robot":
+ files: "kubernetes/robot/**"
+
+ jobs:
+ - "{project-name}-{stream}-image-verify":
+ files: "**"
+ - "{project-name}-{stream}-verify-helm2":
+ files: "**"
+ build-timeout: 360
+ - "{project-name}-{stream}-verify-{helm_bin}":
+ build_script: "{oom_build_script}"
+ files: "**"
+ build-timeout: 360
+ - "{project-name}-{stream}-merge-helm":
+ build_script: "{oom_build_script}"
+ files: "**"
+ - "{project-name}-{stream}-release-helm":
+ build_script: "{oom_build_script}"
+ post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
+ files: "**"
+
+ # Below jobs disabled until future need.
+ - "{project-name}-{subproject}-{stream}-verify-helm2":
+ build_script: "{subproject_build_script}"
+ - "{project-name}-{subproject}-{stream}-merge-helm":
+ build_script: "{subproject_build_script}"
+ - "{project-name}-{stream}-update-helm-weekly":
+ build_script: "{oom_build_script}"
+ files: "**"
diff --git a/jjb/oom/oom-helm.yaml b/jjb/oom/oom-helm.yaml
index 504f7f49a..3c1329a44 100644
--- a/jjb/oom/oom-helm.yaml
+++ b/jjb/oom/oom-helm.yaml
@@ -23,49 +23,19 @@
stream:
- "master":
branch: "master"
- - "guilin":
- branch: "guilin"
- - "frankfurt":
- branch: "frankfurt"
- - "dublin":
- branch: "dublin"
- - "casablanca":
- branch: "casablanca"
-
- subproject:
- - "aai":
- files: "kubernetes/aai/**"
- - "robot":
- files: "kubernetes/robot/**"
+ - "honolulu":
+ branch: "honolulu"
helm_bin:
- helm3.5
- helm3.3
- exclude:
- - stream: guilin
- helm_bin: helm3.5
- - stream: frankfurt
- helm_bin: helm3.5
- - stream: frankfurt
- helm_bin: helm3.3
- - stream: dublin
- helm_bin: helm3.5
- - stream: dublin
- helm_bin: helm3.3
- - stream: casablanca
- helm_bin: helm3.5
- - stream: casablanca
- helm_bin: helm3.3
+ exclude: []
+ subproject: []
+
jobs:
- "{project-name}-{stream}-image-verify":
files: "**"
- - "{project-name}-{stream}-verify-helm2":
- files: "**"
- build-timeout: 360
- stream:
- - guilin
- - frankfurt
- "{project-name}-{stream}-verify-{helm_bin}":
build_script: "{oom_build_script}"
files: "**"