Update onap verify jobs
[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.5.0-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             .holmes.enabled=true,
108             .mariadb-galera.enabled=true,
109             .modeling.enabled=true,
110             .msb.enabled=true,
111             .multicloud.enabled=true,
112             .multicloud.multicloud-starlingx.enabled=true,
113             .multicloud.multicloud-vio.enabled=true,
114             .multicloud.multicloud-windriver.enabled=true,
115             .nbi.enabled=true,
116             .oof.enabled=true,
117             .platform.enabled=true,
118             .policy.enabled=true,
119             .pomba.enabled=false,
120             .portal.enabled=true,
121             .repository-wrapper.enabled=true,
122             .robot.enabled=true,
123             .sdc.enabled=true,
124             .sdnc.enabled=true,
125             .sniro-emulator.enabled=false,
126             .so.enabled=true,
127             .uui.enabled=false,
128             .vfc.enabled=false,
129             .vid.enabled=true,
130             .vndsdk.enabled=true
131       - string:
132           name: ONAP_OOM_HELM_CHART_VALUES_OVERRIDE
133           default: ''
134           description: Specifies the location of an additional file to pass to helm template.
135
136     scm:
137       - git-scm-gerrit:
138           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
139           branch: '{branch}'
140           refspec: '+refs/heads/{branch}:refs/remotes/origin/{branch}'
141           wipe_workspace: true
142           clean_before: false
143
144     wrappers:
145       - build-timeout:
146           timeout: 600
147       - nordixinfra-harbor-creds-wrapper
148       - credentials-binding:
149           - username-password-separated:
150               credential-id: 'nordix-cicd-arm-credentials'
151               username: NORDIX_ARM_USERNAME
152               password: NORDIX_ARM_TOKEN
153       - mask-passwords
154       - fix-workspace-permissions
155
156     builders:
157       - 'oom-build-installdeps-macro'
158       - 'oom-build-wrapper-macro'
159       - 'oom-upload-macro'
160
161     publishers:
162       - notify-slack:
163           slack-channel: '#infra'
164           notify-start: false
165           notify-success: false
166           notify-failure: false
167           notify-back-to-normal: false
168
169     triggers:
170       - timed: '@daily'
171
172 # vim: ts=2 sw=2 expandtab: