blob: 13886207c55a1d8d99a799fdb51c06e81245f5b6 [file] [log] [blame]
---
- project:
name: oom
project-name: oom
project: oom
mvn-settings: oom-settings
mvn-global-settings: global-settings
archive-artifacts: ''
build-node: ubuntu1604-helm-2c-1g
pre_build_script: !include-raw-escape: shell/helm-repo-init.sh
oom_build_script: |
#!/bin/bash
set -e -o pipefail
cd kubernetes/
if [ "$GERRIT_BRANCH" != "staging" ]; then
if grep -r -n -E ':\s*onap/.*:.*(STAGING|SNAPSHOT|latest).*'; then
echo "[ERROR] Only release images are allowed in helm charts."
exit 1
fi
fi
make all
subproject_build_script: |
#!/bin/bash
cd kubernetes/
if [ "$GERRIT_BRANCH" != "staging" ]; then
if grep -r -n -E ':\s*onap/.*:.*(STAGING|SNAPSHOT|latest).*'; then
echo "[ERROR] Only release images are allowed in helm charts."
exit 1
fi
fi
make common
make {subproject}
oom_post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
stream:
- 'master':
branch: 'master'
- 'casablanca':
branch: 'casablanca'
subproject:
- 'aaf':
files: 'kubernetes/aaf/**'
- 'aai':
files: 'kubernetes/aai/**'
- 'appc':
files: 'kubernetes/appc/**'
- 'clamp':
files: 'kubernetes/clamp/**'
- 'cli':
files: 'kubernetes/cli/**'
- 'common':
files: 'kubernetes/common/**'
- 'consul':
files: 'kubernetes/consul/**'
- 'dcaegen2':
files: 'kubernetes/dcaegen2/**'
- 'dmaap':
files: 'kubernetes/dmaap/**'
- 'esr':
files: 'kubernetes/esr/**'
- 'log':
files: 'kubernetes/log/**'
- 'msb':
files: 'kubernetes/msb/**'
- 'multicloud':
files: 'kubernetes/multicloud/**'
- 'nbi':
files: 'kubernetes/nbi/**'
- 'oof':
files: 'kubernetes/oof/**'
- 'policy':
files: 'kubernetes/policy/**'
- 'portal':
files: 'kubernetes/portal/**'
- 'readiness':
files: 'kubernetes/readiness/**'
- 'robot':
files: 'kubernetes/robot/**'
- 'sdc':
files: 'kubernetes/sdc/**'
- 'sdnc':
files: 'kubernetes/sdnc/**'
- 'sniro-emulator':
files: 'kubernetes/sniro-emulator/**'
- 'so':
files: 'kubernetes/so/**'
- 'uui':
files: 'kubernetes/uui/**'
- 'vfc':
files: 'kubernetes/vfc/**'
- 'vid':
files: 'kubernetes/vid/**'
- 'vnfsdk':
files: 'kubernetes/vnfsdk/**'
jobs:
- '{project-name}-{stream}-verify-helm':
build_script: '{oom_build_script}'
files: '**'
- '{project-name}-{stream}-merge-helm':
build_script: '{oom_build_script}'
post_build_script: !include-raw-escape: shell/publish_helm_charts.sh
files: '**'
- '{project-name}-{stream}-stage-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-helm':
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: '**'