+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# this job gets triggered when push-upstream is commented on a change on Nordix Gerrit.
+- project:
+ name: 'oom-build'
+ project: oom
+
+ jobs:
+ - 'onap-oom-helm-build'
+
+- job-template:
+ name: 'onap-oom-helm-build'
+ node: infra-ubuntu1804
+ disabled: false
+ concurrent: false
+
+ parameters:
+ - nordix-gerrit-parameters
+ - string:
+ name: HELM_URL
+ default: 'https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz'
+ description: Specifies the URL to fetch Helm.
+ - string:
+ name: HELM_PUSH_URL
+ default: 'https://github.com/chartmuseum/helm-push/releases/download/v0.9.0/helm-push_0.9.0_linux_amd64.tar.gz'
+ description: Specifies the URL to fetch the Helm-push plugin.
+ - string:
+ name: CHARTMUSEUM_URL
+ default: 'https://get.helm.sh/chartmuseum-v0.13.1-linux-amd64.tar.gz'
+ description: Specifies the URL to fetch Chartmuseum.
+ - string:
+ name: YQ_URL
+ default: 'https://github.com/mikefarah/yq/releases/download/v4.7.0/yq_linux_amd64'
+ description: Specifies the URL to fetch yq.
+ - string:
+ name: NORDIX_REGISTRY
+ default: "https://registry.nordix.org"
+ description: Chart registry to upload the built Helm chart.
+ - string:
+ name: ONAP_OOM_URL
+ default: 'https://gerrit.onap.org/r/oom'
+ description: URL to fetch OOM Git repository.
+ - string:
+ name: ONAP_OOM_VERSION
+ default: 'master'
+ description: Spcifies the version of OOM to fetch.
+ - string:
+ name: ONAP_OOM_HELM_CHART_VALUES_REPLACEMENTS
+ description: A comma-separated list of yq expressions to execute on ONAP umbrella chart values.yaml
+ default: >
+ .global.masterPassword="nordix",
+ .global.repository="nexus3.onap.org:10001",
+ .global.imagePullPolicy="IfNotPresent",
+ .global.ingress.enabled=true,
+ .global.serviceMesh.enabled=true,
+ .global.metrics.enabled=true,
+ .aaf.enabled=true,
+ .aai.enabled=true,
+ .appc.enabled=true,
+ .cassandra.enabled=true,
+ .cds.enabled=true,
+ .clamp.enabled=true,
+ .cli.enabled=true,
+ .consul.enabled=true,
+ .cps.enabled=true,
+ .dcaegen2.enabled=true,
+ .dcaegen2-services.enabled=true,
+ .dcaemod.enabled=true,
+ .holmes.enabled=true,
+ .dmaap.enabled=true,
+ .esr.enabled=true,
+ .sniro-emulator.enabled=true,
+ .oof.enabled=true,
+ .mariadb-galera.enabled=true,
+ .msb.enabled=true,
+ .multicloud.enabled=true,
+ .nbi.enabled=true,
+ .policy.enabled=true,
+ .pomba.enabled=true,
+ .portal.enabled=true,
+ .robot.enabled=true,
+ .sdc.enabled=true,
+ .sdnc.enabled=true,
+ .so.enabled=true,
+ .uui.enabled=true,
+ .vfc.enabled=true,
+ .vid.enabled=true,
+ .vndsdk.enabled=true,
+ .modeling.enabled=true,
+ .platform.enabled=true,
+ .a1policymanagement.enabled=true,
+ .cert-wrapper.enabled=true,
+ .repository-wrapper.enabled=true
+ - string:
+ name: ONAP_OOM_HELM_CHART_VALUES_OVERRIDE
+ default: ''
+ description: Specifies the location of an additional file to pass to helm template.
+
+ scm:
+ - git-scm-gerrit:
+ ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+ branch: $GERRIT_BRANCH
+ refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
+
+ wrappers:
+ - build-timeout:
+ timeout: 10
+ - nordixinfra-harbor-creds-wrapper
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: 'nordix-cicd-arm-credentials'
+ username: NORDIX_ARM_USERNAME
+ password: NORDIX_ARM_TOKEN
+ - mask-passwords
+ - fix-workspace-permissions
+
+ builders:
+ - 'oom-build-wrapper-macro'
+ - 'oom-upload-macro'
+
+ publishers:
+ - notify-slack:
+ slack-channel: '#infra'
+ notify-start: false
+ notify-success: false
+ notify-failure: false
+ notify-back-to-normal: false
+
+# vim: ts=2 sw=2 expandtab: