3 # ============LICENSE_START=======================================================
4 # Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
21 #--------------------------------------------------------------------------------------
22 # The jobs declared in this JJB configuration file are used for verifying cloud-infra
23 # engine from the tip of the master branch periodically to check the stability of it.
25 # These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
27 # - Ubuntu1604 as the base distro
28 # - nested virtualization
31 # - 16 CPUs/32GB RAM/200 GB Disk
32 # - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
33 # gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
35 # The slaves should not have a cloud infra scenario deployed on them.
36 #--------------------------------------------------------------------------------------
39 name: 'cloud-infra-periodic-onap'
41 project: 'infra/engine'
46 onap-version: 4.0.0-ONAP
48 engine-version: master
49 engine-refspec: "refs/changes/71/1771/4"
50 deploy-scenario-version: "9a215b7935ab2b14cc7451ba15ea575e62e26da7"
51 deploy-scenario-refspec: "refs/changes/65/1765/12"
57 engine-version: master
58 engine-refspec: master
59 deploy-scenario-version: master
60 deploy-scenario-refspec: master
71 provisioner-type: heat
72 installer-type: kubespray
73 slave-label: 'jumphost-onap-ubuntu1804'
80 test-type: oom-healthcheck
83 test-type: onap-healthcheck
88 - '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
89 - '{phase}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
92 name: '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
94 project-type: multijob
96 disabled: '{obj:disabled}'
101 - project-parameters:
103 branch: '{nordix-branch}'
104 - nordix-gerrit-parameters
107 default: '{slave-label}'
108 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
112 description: 'Distribution to use for configuring target nodes (networking etc.)'
114 name: PROVISIONER_TYPE
115 default: '{provisioner-type}'
116 description: 'Provisioner to use for provisioning nodes'
119 default: '{installer-type}'
120 description: 'Installer to use for deploying the scenario'
122 name: DEPLOY_SCENARIO
123 default: '{deploy-scenario}'
124 description: 'Scenario to deploy and test'
128 description: 'Type of the deployment'
131 default: '{onap-version}'
132 description: 'ONAP version to deploy'
135 default: '{onap-flavor}'
136 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
138 name: ENGINE_REPO_URL
139 default: 'https://gerrit.nordix.org/infra/engine.git'
140 description: 'URL to Nordix cloud-infra/engine repository'
143 default: '{engine-version}'
144 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
147 default: '{engine-refspec}'
148 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
150 name: DEPLOY_SCENARIO_VERSION
151 default: '{deploy-scenario-version}'
152 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
154 name: DEPLOY_SCENARIO_REFSPEC
155 default: '{deploy-scenario-refspec}'
156 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
158 name: XTESTING_REPO_URL
159 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
160 description: 'URL to Nordix xtesting-onap repository'
162 name: ENGINE_ANSIBLE_PARAMS
164 description: 'Extra parameters that can be added when run the play books.'
168 description: 'Cleanup leftovers of the previous run'
173 use-build-blocker: true
175 - 'cloud-infra-periodic-engine-.*'
187 - fix-workspace-permissions
191 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
192 branch: '{nordix-branch}'
198 - description-setter:
199 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
202 condition: SUCCESSFUL
204 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
205 current-parameters: false
206 predefined-parameters: |
208 DEPLOY_TYPE=$DEPLOY_TYPE
209 PROVISIONER_TYPE=$PROVISIONER_TYPE
210 INSTALLER_TYPE=$INSTALLER_TYPE
211 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
212 ONAP_VERSION=$ONAP_VERSION
213 ONAP_FLAVOR=$ONAP_FLAVOR
214 ENGINE_VERSION=$ENGINE_VERSION
215 ENGINE_REFSPEC=$ENGINE_REFSPEC
216 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
217 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
218 XTESTING_REPO_URL=$XTESTING_REPO_URL
219 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
222 node-parameters: true
223 kill-phase-on: FAILURE
226 name: OOM Healthcheck xtesting
229 - name: 'oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
230 current-parameters: false
231 predefined-parameters: |
233 DEPLOY_TYPE=$DEPLOY_TYPE
234 PROVISIONER_TYPE=$PROVISIONER_TYPE
235 INSTALLER_TYPE=$INSTALLER_TYPE
236 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
237 ONAP_VERSION=$ONAP_VERSION
239 TEST_TYPE=oom-healthcheck
240 ENGINE_VERSION=$ENGINE_VERSION
241 ENGINE_REFSPEC=$ENGINE_REFSPEC
242 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
243 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
244 XTESTING_REPO_URL=$XTESTING_REPO_URL
245 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
247 node-parameters: true
251 name: ONAP Healthcheck xtesting
254 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
255 current-parameters: false
256 predefined-parameters: |
258 DEPLOY_TYPE=$DEPLOY_TYPE
259 PROVISIONER_TYPE=$PROVISIONER_TYPE
260 INSTALLER_TYPE=$INSTALLER_TYPE
261 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
262 ONAP_VERSION=$ONAP_VERSION
264 TEST_TYPE=onap-healthcheck
265 ENGINE_VERSION=$ENGINE_VERSION
266 ENGINE_REFSPEC=$ENGINE_REFSPEC
267 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
268 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
269 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
270 XTESTING_REPO_URL=$XTESTING_REPO_URL
271 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
273 node-parameters: true
276 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
277 current-parameters: false
278 predefined-parameters: |
280 DEPLOY_TYPE=$DEPLOY_TYPE
281 PROVISIONER_TYPE=$PROVISIONER_TYPE
282 INSTALLER_TYPE=$INSTALLER_TYPE
283 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
284 ONAP_VERSION=$ONAP_VERSION
286 TEST_TYPE=onap-healthcheck
287 ENGINE_VERSION=$ENGINE_VERSION
288 ENGINE_REFSPEC=$ENGINE_REFSPEC
289 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
290 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
291 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
292 XTESTING_REPO_URL=$XTESTING_REPO_URL
293 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
295 node-parameters: true
298 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
299 current-parameters: false
300 predefined-parameters: |
302 DEPLOY_TYPE=$DEPLOY_TYPE
303 PROVISIONER_TYPE=$PROVISIONER_TYPE
304 INSTALLER_TYPE=$INSTALLER_TYPE
305 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
306 ONAP_VERSION=$ONAP_VERSION
308 TEST_TYPE=onap-healthcheck
309 ENGINE_VERSION=$ENGINE_VERSION
310 ENGINE_REFSPEC=$ENGINE_REFSPEC
311 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
312 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
313 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
314 XTESTING_REPO_URL=$XTESTING_REPO_URL
315 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
317 node-parameters: true
320 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
321 current-parameters: false
322 predefined-parameters: |
324 DEPLOY_TYPE=$DEPLOY_TYPE
325 PROVISIONER_TYPE=$PROVISIONER_TYPE
326 INSTALLER_TYPE=$INSTALLER_TYPE
327 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
328 ONAP_VERSION=$ONAP_VERSION
330 TEST_TYPE=onap-healthcheck
331 ENGINE_VERSION=$ENGINE_VERSION
332 ENGINE_REFSPEC=$ENGINE_REFSPEC
333 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
334 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
335 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
336 XTESTING_REPO_URL=$XTESTING_REPO_URL
337 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
339 node-parameters: true
346 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
347 current-parameters: false
348 predefined-parameters: |
350 DEPLOY_TYPE=$DEPLOY_TYPE
351 INSTALLER_TYPE=$INSTALLER_TYPE
352 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
353 ONAP_VERSION=$ONAP_VERSION
354 ONAP_FLAVOR=$ONAP_FLAVOR
355 ENGINE_VERSION=$ENGINE_VERSION
356 ENGINE_REFSPEC=$ENGINE_REFSPEC
357 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
358 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
359 XTESTING_REPO_URL=$XTESTING_REPO_URL
360 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
362 node-parameters: true
367 name: '{phase}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
377 - project-parameters:
379 branch: '{nordix-branch}'
380 - nordix-gerrit-parameters
383 default: 'jumphost-onap-ubuntu1804'
384 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
387 default: 'ubuntu1804'
388 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
390 name: PROVISIONER_TYPE
392 description: 'Provisioner to use for provisioning nodes'
396 description: 'Installer to use for deploying the scenario'
398 name: DEPLOY_SCENARIO
399 default: 'onap-oom-nofeature'
400 description: 'Scenario to deploy and test'
402 name: HEAT_ENVIRONMENT_FILE
403 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
404 description: 'Type of the deployment'
408 description: 'Type of the deployment. Overriden by upstream job.'
412 description: 'ONAP version to deploy'
415 default: '{onap-flavor}'
416 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
419 default: 'oom-healthcheck'
420 description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
424 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
428 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
430 name: DEPLOY_SCENARIO_VERSION
432 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
434 name: DEPLOY_SCENARIO_REFSPEC
436 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
438 name: XTESTING_REPO_URL
439 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
440 description: 'URL to Nordix xtesting-onap repository'
442 name: ENGINE_ANSIBLE_PARAMS
444 description: 'Extra parameters that can be added when run the play books.'
450 - credentials-binding:
452 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
453 variable: OPENRC_FILE
456 timeout: '{build-timeout}'
457 - fix-workspace-permissions
461 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
462 branch: '{nordix-branch}'
468 - description-setter:
469 description: $INSTALLER_TYPE $DEPLOY_SCENARIO
472 # vim: set ts=2 sw=2 expandtab: