d12e69a7dfcbb74a4bf1089f243d281f37620320
[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-helm-build'
23     project: 'infra/installer/oom'
24
25     stream:
26       - 'master':
27           branch: 'master'
28
29     jobs:
30       - 'onap-oom-helm-build-{stream}'
31
32 - job-template:
33     name: 'onap-oom-helm-build-{stream}'
34     node: infra-ubuntu1804
35     disabled: false
36     concurrent: false
37
38     parameters:
39       - project-parameters:
40           project: '{project}'
41           branch: '{branch}'
42           description: 'The project and branch for which the change is proposed'
43       - nordix-gerrit-parameters
44       - string:
45           name: HELM_URL
46           default: 'https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz'
47           description: Specifies the URL to fetch Helm.
48       - string:
49           name: HELM_PUSH_URL
50           default: 'https://github.com/chartmuseum/helm-push/releases/download/v0.9.0/helm-push_0.9.0_linux_amd64.tar.gz'
51           description: Specifies the URL to fetch the Helm-push plugin.
52       - string:
53           name: CHARTMUSEUM_URL
54           default: 'https://get.helm.sh/chartmuseum-v0.13.1-linux-amd64.tar.gz'
55           description: Specifies the URL to fetch Chartmuseum.
56       - string:
57           name: YQ_URL
58           default: 'https://github.com/mikefarah/yq/releases/download/v4.7.0/yq_linux_amd64'
59           description: Specifies the URL to fetch yq.
60       - string:
61           name: NORDIX_REGISTRY
62           default: "https://registry.nordix.org"
63           description: Chart registry to upload the built Helm chart.
64       - string:
65           name: NORDIX_ARM_HTTPS_URL
66           default: "https://artifactory.nordix.org/artifactory"
67           description: "Artifact Repository Manager to which to upload the built artifacts."
68       - string:
69           name: ONAP_OOM_URL
70           default: 'https://gerrit.onap.org/r/oom'
71           description: URL to fetch OOM Git repository.
72       - string:
73           name: ONAP_OOM_VERSION
74           default: 'master'
75           description: Spcifies the version of OOM to fetch.
76       - string:
77           name: ONAP_OOM_HELM_CHART_VALUES_REPLACEMENTS
78           description: A comma-separated list of yq expressions to execute on ONAP umbrella chart values.yaml
79           default: >
80             explode(.),
81             .global.masterPassword="nordix",
82             .global.repository="nexus3.onap.org:10001",
83             .global.imagePullPolicy="IfNotPresent",
84             .global.ingress.enabled=true,
85             .global.serviceMesh.enabled=true,
86             .global.metrics.enabled=true,
87             .global.addTestingComponents=true,
88             .a1policymanagement.enabled=true,
89             .aaf.enabled=true,
90             .aai.enabled=true,
91             .appc.enabled=true,
92             .cassandra.enabled=true,
93             .cds.enabled=true,
94             .cert-wrapper.enabled=true,
95             .clamp.enabled=true,
96             .cli.enabled=true,
97             .consul.enabled=true,
98             .contrib.enabled=true,
99             .contrib.awx.enabled=false,
100             .contrib.netbox.enabled=false,
101             .cps.enabled=true,
102             .dcaegen2.enabled=true,
103             .dcaegen2-services.enabled=true,
104             .dcaemod.enabled=true,
105             .dmaap.enabled=true,
106             .esr.enabled=true,
107             .sniro-emulator.enabled=false,
108             .oof.enabled=true,
109             .mariadb-galera.enabled=true,
110             .modeling.enabled=true,
111             .msb.enabled=true,
112             .multicloud.enabled=true,
113             .nbi.enabled=true,
114             .platform.enabled=true,
115             .policy.enabled=true,
116             .pomba.enabled=false,
117             .portal.enabled=true,
118             .repository-wrapper.enabled=true,
119             .robot.enabled=true,
120             .sdc.enabled=true,
121             .sdnc.enabled=true,
122             .so.enabled=true,
123             .uui.enabled=false,
124             .vfc.enabled=false,
125             .vid.enabled=true,
126             .vndsdk.enabled=true
127       - string:
128           name: ONAP_OOM_HELM_CHART_VALUES_OVERRIDE
129           default: ''
130           description: Specifies the location of an additional file to pass to helm template.
131
132     scm:
133       - git-scm-gerrit:
134           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
135           branch: '{branch}'
136           refspec: '+refs/heads/{branch}:refs/remotes/origin/{branch}'
137           wipe_workspace: true
138           clean_before: false
139
140     wrappers:
141       - build-timeout:
142           timeout: 600
143       - nordixinfra-harbor-creds-wrapper
144       - credentials-binding:
145           - username-password-separated:
146               credential-id: 'nordix-cicd-arm-credentials'
147               username: NORDIX_ARM_USERNAME
148               password: NORDIX_ARM_TOKEN
149       - mask-passwords
150       - fix-workspace-permissions
151
152     builders:
153       - 'oom-build-installdeps-macro'
154       - 'oom-build-wrapper-macro'
155       - 'oom-upload-macro'
156
157     publishers:
158       - notify-slack:
159           slack-channel: '#infra'
160           notify-start: false
161           notify-success: false
162           notify-failure: false
163           notify-back-to-normal: false
164
165     triggers:
166       - timed: '@daily'
167
168 # vim: ts=2 sw=2 expandtab: