blob: 4b0803c065dccc7435f537a8e27c1a37c2c14b14 [file] [log] [blame]
Jeremy Phelps08126d82018-08-07 11:08:48 -05001---
2- project:
3 name: oom
4 project-name: oom
5 project: oom
6 mvn-settings: oom-settings
Jeremy Phelps3cffa432018-08-15 16:26:12 -05007 mvn-global-settings: global-settings
Jeremy Phelps08126d82018-08-07 11:08:48 -05008 archive-artifacts: ''
Jessica Wagantall84782472020-03-18 13:15:20 -07009 build-node: ubuntu1804-helm-2c-1g
Jeremy Phelps08126d82018-08-07 11:08:48 -050010 pre_build_script: !include-raw-escape: shell/helm-repo-init.sh
Jeremy Phelps3cffa432018-08-15 16:26:12 -050011 oom_build_script: |
12 #!/bin/bash
13 set -e -o pipefail
14 cd kubernetes/
Gary Wuddb34162019-06-26 08:08:11 -070015 if [ "$GERRIT_BRANCH" != "staging" ]; then
16 if grep -r -n -E ':\s*onap/.*:.*(STAGING|SNAPSHOT|latest).*'; then
17 echo "[ERROR] Only release images are allowed in helm charts."
18 exit 1
19 fi
Gary Wud6f09432019-05-29 07:30:34 -070020 fi
Jeremy Phelps3cffa432018-08-15 16:26:12 -050021 make all
22 subproject_build_script: |
23 #!/bin/bash
24 cd kubernetes/
Gary Wuddb34162019-06-26 08:08:11 -070025 if [ "$GERRIT_BRANCH" != "staging" ]; then
26 if grep -r -n -E ':\s*onap/.*:.*(STAGING|SNAPSHOT|latest).*'; then
27 echo "[ERROR] Only release images are allowed in helm charts."
28 exit 1
29 fi
Gary Wud6f09432019-05-29 07:30:34 -070030 fi
Jeremy Phelps3cffa432018-08-15 16:26:12 -050031 make common
Jeremy Phelps2ff41532018-11-29 11:55:02 -060032 make {subproject}
Jeremy Phelps3cffa432018-08-15 16:26:12 -050033 oom_post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
34
Jeremy Phelps08126d82018-08-07 11:08:48 -050035 stream:
36 - 'master':
37 branch: 'master'
Sylvain Desbureaux6f6e2c82020-05-11 09:15:11 +020038 - 'frankfurt':
39 branch: 'frankfurt'
Cédric Ollivier4305c202019-07-16 19:30:53 +020040 - 'dublin':
41 branch: 'dublin'
Jeremy Phelps2ff41532018-11-29 11:55:02 -060042 - 'casablanca':
43 branch: 'casablanca'
Jeremy Phelps08126d82018-08-07 11:08:48 -050044
45 subproject:
46 - 'aaf':
47 files: 'kubernetes/aaf/**'
48 - 'aai':
49 files: 'kubernetes/aai/**'
50 - 'appc':
51 files: 'kubernetes/appc/**'
52 - 'clamp':
53 files: 'kubernetes/clamp/**'
54 - 'cli':
55 files: 'kubernetes/cli/**'
56 - 'common':
57 files: 'kubernetes/common/**'
58 - 'consul':
59 files: 'kubernetes/consul/**'
60 - 'dcaegen2':
61 files: 'kubernetes/dcaegen2/**'
62 - 'dmaap':
63 files: 'kubernetes/dmaap/**'
64 - 'esr':
65 files: 'kubernetes/esr/**'
66 - 'log':
67 files: 'kubernetes/log/**'
68 - 'msb':
69 files: 'kubernetes/msb/**'
70 - 'multicloud':
71 files: 'kubernetes/multicloud/**'
72 - 'nbi':
73 files: 'kubernetes/nbi/**'
74 - 'oof':
75 files: 'kubernetes/oof/**'
76 - 'policy':
77 files: 'kubernetes/policy/**'
78 - 'portal':
79 files: 'kubernetes/portal/**'
80 - 'readiness':
81 files: 'kubernetes/readiness/**'
82 - 'robot':
83 files: 'kubernetes/robot/**'
84 - 'sdc':
85 files: 'kubernetes/sdc/**'
86 - 'sdnc':
87 files: 'kubernetes/sdnc/**'
88 - 'sniro-emulator':
89 files: 'kubernetes/sniro-emulator/**'
90 - 'so':
91 files: 'kubernetes/so/**'
92 - 'uui':
93 files: 'kubernetes/uui/**'
94 - 'vfc':
95 files: 'kubernetes/vfc/**'
96 - 'vid':
97 files: 'kubernetes/vid/**'
98 - 'vnfsdk':
99 files: 'kubernetes/vnfsdk/**'
100
101 jobs:
102 - '{project-name}-{stream}-verify-helm':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500103 build_script: '{oom_build_script}'
Jeremy Phelps08126d82018-08-07 11:08:48 -0500104 files: '**'
105 - '{project-name}-{stream}-merge-helm':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500106 build_script: '{oom_build_script}'
107 post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
Jeremy Phelps08126d82018-08-07 11:08:48 -0500108 files: '**'
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500109 - '{project-name}-{stream}-stage-helm':
110 build_script: '{oom_build_script}'
111 post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
112 files: '**'
113
114 # Below jobs disabled until future need.
Jeremy Phelps08126d82018-08-07 11:08:48 -0500115 - '{project-name}-{subproject}-{stream}-verify-helm':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500116 build_script: '{subproject_build_script}'
Jeremy Phelps08126d82018-08-07 11:08:48 -0500117 - '{project-name}-{subproject}-{stream}-merge-helm':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500118 build_script: '{subproject_build_script}'
Jeremy Phelps08126d82018-08-07 11:08:48 -0500119 - '{project-name}-{stream}-update-helm-weekly':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500120 build_script: '{oom_build_script}'
Jeremy Phelps08126d82018-08-07 11:08:48 -0500121 files: '**'