onap-oom-helm-build: add missing parameters and url-quote version
[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             .global.masterPassword="nordix",
81             .global.repository="nexus3.onap.org:10001",
82             .global.imagePullPolicy="IfNotPresent",
83             .global.ingress.enabled=true,
84             .global.serviceMesh.enabled=true,
85             .global.metrics.enabled=true,
86             .aaf.enabled=true,
87             .aai.enabled=true,
88             .appc.enabled=true,
89             .cassandra.enabled=true,
90             .cds.enabled=true,
91             .clamp.enabled=true,
92             .cli.enabled=true,
93             .consul.enabled=true,
94             .cps.enabled=true,
95             .dcaegen2.enabled=true,
96             .dcaegen2-services.enabled=true,
97             .dcaemod.enabled=true,
98             .holmes.enabled=true,
99             .dmaap.enabled=true,
100             .esr.enabled=true,
101             .sniro-emulator.enabled=true,
102             .oof.enabled=true,
103             .mariadb-galera.enabled=true,
104             .msb.enabled=true,
105             .multicloud.enabled=true,
106             .nbi.enabled=true,
107             .policy.enabled=true,
108             .pomba.enabled=true,
109             .portal.enabled=true,
110             .robot.enabled=true,
111             .sdc.enabled=true,
112             .sdnc.enabled=true,
113             .so.enabled=true,
114             .uui.enabled=true,
115             .vfc.enabled=true,
116             .vid.enabled=true,
117             .vndsdk.enabled=true,
118             .modeling.enabled=true,
119             .platform.enabled=true,
120             .a1policymanagement.enabled=true,
121             .cert-wrapper.enabled=true,
122             .repository-wrapper.enabled=true
123       - string:
124           name: ONAP_OOM_HELM_CHART_VALUES_OVERRIDE
125           default: ''
126           description: Specifies the location of an additional file to pass to helm template.
127
128     scm:
129       - git-scm-gerrit:
130           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
131           branch: '{branch}'
132           refspec: '+refs/heads/{branch}:refs/remotes/origin/{branch}'
133           wipe_workspace: true
134           clean_before: false
135
136     wrappers:
137       - build-timeout:
138           timeout: 600
139       - nordixinfra-harbor-creds-wrapper
140       - credentials-binding:
141           - username-password-separated:
142               credential-id: 'nordix-cicd-arm-credentials'
143               username: NORDIX_ARM_USERNAME
144               password: NORDIX_ARM_TOKEN
145       - mask-passwords
146       - fix-workspace-permissions
147
148     builders:
149       - 'oom-build-installdeps-macro'
150       - 'oom-build-wrapper-macro'
151       - 'oom-upload-macro'
152
153     publishers:
154       - notify-slack:
155           slack-channel: '#infra'
156           notify-start: false
157           notify-success: false
158           notify-failure: false
159           notify-back-to-normal: false
160
161 # vim: ts=2 sw=2 expandtab: