blob: 13886207c55a1d8d99a799fdb51c06e81245f5b6 [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: ''
9 build-node: ubuntu1604-helm-2c-1g
10 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'
Jeremy Phelps2ff41532018-11-29 11:55:02 -060038 - 'casablanca':
39 branch: 'casablanca'
Jeremy Phelps08126d82018-08-07 11:08:48 -050040
41 subproject:
42 - 'aaf':
43 files: 'kubernetes/aaf/**'
44 - 'aai':
45 files: 'kubernetes/aai/**'
46 - 'appc':
47 files: 'kubernetes/appc/**'
48 - 'clamp':
49 files: 'kubernetes/clamp/**'
50 - 'cli':
51 files: 'kubernetes/cli/**'
52 - 'common':
53 files: 'kubernetes/common/**'
54 - 'consul':
55 files: 'kubernetes/consul/**'
56 - 'dcaegen2':
57 files: 'kubernetes/dcaegen2/**'
58 - 'dmaap':
59 files: 'kubernetes/dmaap/**'
60 - 'esr':
61 files: 'kubernetes/esr/**'
62 - 'log':
63 files: 'kubernetes/log/**'
64 - 'msb':
65 files: 'kubernetes/msb/**'
66 - 'multicloud':
67 files: 'kubernetes/multicloud/**'
68 - 'nbi':
69 files: 'kubernetes/nbi/**'
70 - 'oof':
71 files: 'kubernetes/oof/**'
72 - 'policy':
73 files: 'kubernetes/policy/**'
74 - 'portal':
75 files: 'kubernetes/portal/**'
76 - 'readiness':
77 files: 'kubernetes/readiness/**'
78 - 'robot':
79 files: 'kubernetes/robot/**'
80 - 'sdc':
81 files: 'kubernetes/sdc/**'
82 - 'sdnc':
83 files: 'kubernetes/sdnc/**'
84 - 'sniro-emulator':
85 files: 'kubernetes/sniro-emulator/**'
86 - 'so':
87 files: 'kubernetes/so/**'
88 - 'uui':
89 files: 'kubernetes/uui/**'
90 - 'vfc':
91 files: 'kubernetes/vfc/**'
92 - 'vid':
93 files: 'kubernetes/vid/**'
94 - 'vnfsdk':
95 files: 'kubernetes/vnfsdk/**'
96
97 jobs:
98 - '{project-name}-{stream}-verify-helm':
Jeremy Phelps3cffa432018-08-15 16:26:12 -050099 build_script: '{oom_build_script}'
Jeremy Phelps08126d82018-08-07 11:08:48 -0500100 files: '**'
101 - '{project-name}-{stream}-merge-helm':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500102 build_script: '{oom_build_script}'
103 post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
Jeremy Phelps08126d82018-08-07 11:08:48 -0500104 files: '**'
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500105 - '{project-name}-{stream}-stage-helm':
106 build_script: '{oom_build_script}'
107 post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
108 files: '**'
109
110 # Below jobs disabled until future need.
Jeremy Phelps08126d82018-08-07 11:08:48 -0500111 - '{project-name}-{subproject}-{stream}-verify-helm':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500112 build_script: '{subproject_build_script}'
Jeremy Phelps08126d82018-08-07 11:08:48 -0500113 - '{project-name}-{subproject}-{stream}-merge-helm':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500114 build_script: '{subproject_build_script}'
Jeremy Phelps08126d82018-08-07 11:08:48 -0500115 - '{project-name}-{stream}-update-helm-weekly':
Jeremy Phelps3cffa432018-08-15 16:26:12 -0500116 build_script: '{oom_build_script}'
Jeremy Phelps08126d82018-08-07 11:08:48 -0500117 files: '**'