41ed4019d35b1ed0104fa1372e758d0ff886986a
[infra/cicd.git] / jjb / engine / onap-periodic-jobs / onap-online-release-jobs.yaml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2019 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 - project:
21     name: 'onap-release-online'
22
23     project: 'onap-release-online'
24
25     environment-type:
26       - online:
27           disabled: true
28           execution-mode: online-deployment
29
30     onap-branch:
31       - elalto:
32           onap-version: elalto
33       - master:
34           onap-version: master
35
36     onap-profile:
37       - sdc
38       - so
39
40     distro:
41       - ubuntu1804
42
43     phase:
44       - package
45       - promote
46
47     cloud:
48       - city:
49           openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
50
51     jobs:
52       - 'onap-{onap-profile}-periodic-release-{environment-type}-{distro}-{onap-branch}'
53       - 'onap-{onap-profile}-periodic-package-{distro}-{onap-branch}'
54       - 'onap-{onap-profile}-periodic-promote-{distro}-{onap-branch}'
55
56 - job-template:
57     name: 'onap-{onap-profile}-periodic-release-{environment-type}-{distro}-{onap-branch}'
58
59     project-type: multijob
60
61     disabled: '{obj:disabled}'
62
63     concurrent: false
64
65     parameters:
66       - string:
67           name: EXECUTION_MODE
68           default: '{execution-mode}'
69           description: 'Engine execution mode - online-deployment or offline-deployment - default is online-deployment'
70       - string:
71           name: DISTRO
72           default: '{distro}'
73           description: 'Distribution to use for configuring target nodes (networking etc.)'
74       - string:
75           name: INSTALLER_TYPE
76           default: 'kubespray'
77           description: 'Installer type to use'
78       - string:
79           name: DEPLOY_SCENARIO
80           default: 'k8-calico-onap'
81           description: 'Scenario to deploy and test'
82       - string:
83           name: ONAP_PROFILE
84           default: '{onap-profile}'
85           description: 'ONAP Profile to deploy and test'
86       - string:
87           name: VERBOSITY
88           default: 'true'
89           description: 'Verbosity setting for the engine - true or false - default is false'
90       - string:
91           name: ARTIFACTS_TO_UPLOAD
92           default: "onap-{onap-profile}-installer-ubuntu1804.bsx offline-package.tgz"
93           description: 'Artifacts to upload'
94       - string:
95           name: ARTIFACT_TO_DOWNLOAD
96           default: "onap-{onap-profile}-installer-ubuntu1804.bsx"
97           description: 'Artifact to download'
98       - string:
99           name: NORDIX_ARM_PUBLIC_IP
100           default: '91.106.198.25'
101           description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
102       - string:
103           name: NORDIX_ARM_HTTPS_URL
104           default: 'https://artifactory.nordix.org/artifactory'
105           description: 'URL to Nordix Artifactory'
106       - string:
107           name: NORDIX_ARM_REPO
108           default: 'nordix-onap'
109           description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
110       - string:
111           name: CI_LOOP
112           default: 'periodic'
113           description: 'CI loop type'
114       - label:
115           name: SLAVE_LABEL
116           default: 'engine-package-ubuntu1804'
117           description: 'Slave label to schedule this job on.'
118
119     properties:
120       - logrotate
121       - build-blocker:
122           use-build-blocker: true
123           blocking-jobs:
124             - 'engine-verify-package-.*'
125             - 'onap-sdc-periodic-release-offline-.*'
126             - 'onap-so-periodic-release-offline-.*'
127             - 'kubernetes-periodic-release-offline-.*'
128           block-level: 'NODE'
129
130     wrappers:
131       - build-timeout:
132           timeout: 600
133       - mask-passwords
134       - fix-workspace-permissions
135
136     triggers:
137       - pollscm:
138           cron: "H 0,8,16 * * *"
139
140     scm:
141       - git:
142           url: https://gerrit.nordix.org/infra/engine.git
143           branches:
144             - master
145           timeout: 15
146           wipe-workspace: true
147
148     builders:
149       - 'generate-ssh-keypair-macro'
150       - 'generate-build-metadata-macro'
151       - 'wait-pkg-mgr-macro'
152       - multijob:
153           name: package
154           condition: SUCCESSFUL
155           execution-type: PARALLEL
156           projects:
157             - name: 'onap-{onap-profile}-periodic-package-{distro}-{onap-branch}'
158               current-parameters: true
159               git-revision: true
160               node-parameters: true
161               property-file: "$WORKSPACE/build.properties"
162               kill-phase-on: FAILURE
163               abort-all-job: true
164       - multijob:
165           name: release test k8-calico-onap {onap-profile}
166           condition: SUCCESSFUL
167           execution-type: PARALLEL
168           projects:
169             - name: 'k8-calico-onap-{onap-profile}-online-ubuntu1804-city-cloud-periodic-{onap-branch}'
170               current-parameters: false
171               git-revision: false
172               node-parameters: false
173               property-file: "$WORKSPACE/build.properties"
174               predefined-parameters: |
175                 EXECUTION_MODE=$EXECUTION_MODE
176                 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
177                 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
178                 VERBOSITY=$VERBOSITY
179               kill-phase-on: FAILURE
180               abort-all-job: true
181       - multijob:
182           name: promotion
183           condition: SUCCESSFUL
184           execution-type: PARALLEL
185           projects:
186             - name: 'onap-{onap-profile}-periodic-promote-{distro}-{onap-branch}'
187               current-parameters: true
188               git-revision: true
189               node-parameters: true
190               property-file: "$WORKSPACE/build.properties"
191               kill-phase-on: FAILURE
192               abort-all-job: true
193
194 - job-template:
195     name: 'onap-{onap-profile}-periodic-package-{distro}-{onap-branch}'
196
197     disabled: '{obj:disabled}'
198
199     concurrent: false
200
201     properties:
202       - logrotate
203
204     wrappers:
205       - build-timeout:
206           timeout: 70
207       - credentials-binding:
208           - username-password-separated:
209               credential-id: 'nordix-cicd-arm-credentials'
210               username: NORDIX_ARM_USERNAME
211               password: NORDIX_ARM_TOKEN
212       - mask-passwords
213       - fix-workspace-permissions
214
215     scm:
216       - git:
217           url: https://gerrit.nordix.org/infra/engine.git
218           branches:
219             - master
220           timeout: 15
221           wipe-workspace: true
222
223     builders:
224       - 'onap-package-builder-macro'
225
226 - job-template:
227     name: 'onap-{onap-profile}-periodic-promote-{distro}-{onap-branch}'
228
229     disabled: '{obj:disabled}'
230
231     concurrent: false
232
233     properties:
234       - logrotate
235
236     wrappers:
237       - build-timeout:
238           timeout: 30
239       - credentials-binding:
240           - username-password-separated:
241               credential-id: 'nordix-cicd-arm-credentials'
242               username: NORDIX_ARM_USERNAME
243               password: NORDIX_ARM_TOKEN
244       - mask-passwords
245       - fix-workspace-permissions
246
247     scm:
248       - git:
249           url: https://gerrit.nordix.org/infra/engine.git
250           branches:
251             - master
252           timeout: 15
253           wipe-workspace: true
254
255     builders:
256       - 'onap-promote-builder-macro'