d66623e8e25113736d2b9f278b87baaa324fd366
[infra/cicd.git] / jjb / onap / oom / oom-build-jobs.yaml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2021 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 # this job gets triggered when push-upstream is commented on a change on Nordix Gerrit.
21 - project:
22     name: 'oom-build'
23     project: oom
24
25     jobs:
26       - 'onap-oom-helm-build'
27
28 - job-template:
29     name: 'onap-oom-helm-build'
30     node: infra-ubuntu1804
31     disabled: false
32     concurrent: false
33
34     parameters:
35       - nordix-gerrit-parameters
36       - string:
37           name: HELM_URL
38           default: 'https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz'
39           description: Specifies the URL to fetch Helm.
40       - string:
41           name: HELM_PUSH_URL
42           default: 'https://github.com/chartmuseum/helm-push/releases/download/v0.9.0/helm-push_0.9.0_linux_amd64.tar.gz'
43           description: Specifies the URL to fetch the Helm-push plugin.
44       - string:
45           name: CHARTMUSEUM_URL
46           default: 'https://get.helm.sh/chartmuseum-v0.13.1-linux-amd64.tar.gz'
47           description: Specifies the URL to fetch Chartmuseum.
48       - string:
49           name: YQ_URL
50           default: 'https://github.com/mikefarah/yq/releases/download/v4.7.0/yq_linux_amd64'
51           description: Specifies the URL to fetch yq.
52       - string:
53           name: NORDIX_REGISTRY
54           default: "https://registry.nordix.org"
55           description: Chart registry to upload the built Helm chart.
56       - string:
57           name: ONAP_OOM_URL
58           default: 'https://gerrit.onap.org/r/oom'
59           description: URL to fetch OOM Git repository.
60       - string:
61           name: ONAP_OOM_VERSION
62           default: 'master'
63           description: Spcifies the version of OOM to fetch.
64       - string:
65           name: ONAP_OOM_HELM_CHART_VALUES_REPLACEMENTS
66           description: A comma-separated list of yq expressions to execute on ONAP umbrella chart values.yaml
67           default: >
68             .global.masterPassword="nordix",
69             .global.repository="nexus3.onap.org:10001",
70             .global.imagePullPolicy="IfNotPresent",
71             .global.ingress.enabled=true,
72             .global.serviceMesh.enabled=true,
73             .global.metrics.enabled=true,
74             .aaf.enabled=true,
75             .aai.enabled=true,
76             .appc.enabled=true,
77             .cassandra.enabled=true,
78             .cds.enabled=true,
79             .clamp.enabled=true,
80             .cli.enabled=true,
81             .consul.enabled=true,
82             .cps.enabled=true,
83             .dcaegen2.enabled=true,
84             .dcaegen2-services.enabled=true,
85             .dcaemod.enabled=true,
86             .holmes.enabled=true,
87             .dmaap.enabled=true,
88             .esr.enabled=true,
89             .sniro-emulator.enabled=true,
90             .oof.enabled=true,
91             .mariadb-galera.enabled=true,
92             .msb.enabled=true,
93             .multicloud.enabled=true,
94             .nbi.enabled=true,
95             .policy.enabled=true,
96             .pomba.enabled=true,
97             .portal.enabled=true,
98             .robot.enabled=true,
99             .sdc.enabled=true,
100             .sdnc.enabled=true,
101             .so.enabled=true,
102             .uui.enabled=true,
103             .vfc.enabled=true,
104             .vid.enabled=true,
105             .vndsdk.enabled=true,
106             .modeling.enabled=true,
107             .platform.enabled=true,
108             .a1policymanagement.enabled=true,
109             .cert-wrapper.enabled=true,
110             .repository-wrapper.enabled=true
111       - string:
112           name: ONAP_OOM_HELM_CHART_VALUES_OVERRIDE
113           default: ''
114           description: Specifies the location of an additional file to pass to helm template.
115
116     scm:
117       - git-scm-gerrit:
118           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
119           branch: $GERRIT_BRANCH
120           refspec: $GERRIT_REFSPEC
121           wipe_workspace: true
122           clean_before: false
123
124     wrappers:
125       - build-timeout:
126           timeout: 10
127       - nordixinfra-harbor-creds-wrapper
128       - credentials-binding:
129           - username-password-separated:
130               credential-id: 'nordix-cicd-arm-credentials'
131               username: NORDIX_ARM_USERNAME
132               password: NORDIX_ARM_TOKEN
133       - mask-passwords
134       - fix-workspace-permissions
135
136     builders:
137       - 'oom-build-wrapper-macro'
138       - 'oom-upload-macro'
139
140     publishers:
141       - notify-slack:
142           slack-channel: '#infra'
143           notify-start: false
144           notify-success: false
145           notify-failure: false
146           notify-back-to-normal: false
147
148 # vim: ts=2 sw=2 expandtab: