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