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: master
50 deploy-scenario-version: master
51 deploy-scenario-refspec: master
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'
82 test-type: oom-healthcheck
87 test-type: onap-healthcheck
99 - '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
100 - 'xtesting-{phase}-{flavor}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
103 name: '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
105 project-type: multijob
107 disabled: '{obj:disabled}'
112 - project-parameters:
114 branch: '{nordix-branch}'
115 - nordix-gerrit-parameters
118 default: '{slave-label}'
119 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
123 description: 'Distribution to use for configuring target nodes (networking etc.)'
125 name: PROVISIONER_TYPE
126 default: '{provisioner-type}'
127 description: 'Provisioner to use for provisioning nodes'
130 default: '{installer-type}'
131 description: 'Installer to use for deploying the scenario'
133 name: DEPLOY_SCENARIO
134 default: '{deploy-scenario}'
135 description: 'Scenario to deploy and test'
137 name: HEAT_ENVIRONMENT_FILE
138 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
139 description: 'Type of the deployment'
143 description: 'Type of the deployment'
146 default: '{onap-version}'
147 description: 'ONAP version to deploy'
150 default: '{onap-flavor}'
151 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
153 name: ENGINE_REPO_URL
154 default: 'https://gerrit.nordix.org/infra/engine.git'
155 description: 'URL to Nordix cloud-infra/engine repository'
158 default: '{engine-version}'
159 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
162 default: '{engine-refspec}'
163 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
165 name: DEPLOY_SCENARIO_VERSION
166 default: '{deploy-scenario-version}'
167 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
169 name: DEPLOY_SCENARIO_REFSPEC
170 default: '{deploy-scenario-refspec}'
171 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
173 name: XTESTING_REPO_URL
174 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
175 description: 'URL to Nordix xtesting-onap repository'
177 name: ENGINE_ANSIBLE_PARAMS
179 description: 'Extra parameters that can be added when run the play books.'
183 description: 'Cleanup leftovers of the previous run'
188 use-build-blocker: true
190 - 'cloud-infra-periodic-engine-.*'
202 - fix-workspace-permissions
206 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
207 branch: '{nordix-branch}'
213 - description-setter:
214 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
217 condition: SUCCESSFUL
219 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
220 current-parameters: false
221 predefined-parameters: |
223 DEPLOY_TYPE=$DEPLOY_TYPE
224 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
225 INSTALLER_TYPE=$INSTALLER_TYPE
226 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
227 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
228 ONAP_VERSION=$ONAP_VERSION
229 ONAP_FLAVOR=$ONAP_FLAVOR
230 ENGINE_VERSION=$ENGINE_VERSION
231 ENGINE_REFSPEC=$ENGINE_REFSPEC
232 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
233 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
234 XTESTING_REPO_URL=$XTESTING_REPO_URL
235 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
238 node-parameters: true
239 kill-phase-on: FAILURE
242 name: OOM Healthcheck
243 condition: SUCCESSFUL
245 - name: 'xtesting-oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
246 current-parameters: false
247 predefined-parameters: |
249 DEPLOY_TYPE=$DEPLOY_TYPE
250 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
251 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
252 INSTALLER_TYPE=$INSTALLER_TYPE
253 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
254 ONAP_VERSION=$ONAP_VERSION
256 TEST_TYPE=oom-healthcheck
257 ENGINE_VERSION=$ENGINE_VERSION
258 ENGINE_REFSPEC=$ENGINE_REFSPEC
259 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
260 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
261 XTESTING_REPO_URL=$XTESTING_REPO_URL
262 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
264 node-parameters: true
268 name: ONAP Healthcheck - Core
269 condition: SUCCESSFUL
271 - name: 'xtesting-onap-healthcheck-core-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
272 current-parameters: false
273 predefined-parameters: |
275 DEPLOY_TYPE=$DEPLOY_TYPE
276 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
277 INSTALLER_TYPE=$INSTALLER_TYPE
278 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
279 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
280 ONAP_VERSION=$ONAP_VERSION
282 TEST_TYPE=onap-healthcheck
283 ENGINE_VERSION=$ENGINE_VERSION
284 ENGINE_REFSPEC=$ENGINE_REFSPEC
285 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
286 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
287 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
288 XTESTING_REPO_URL=$XTESTING_REPO_URL
289 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
291 node-parameters: true
294 name: ONAP Healthcheck - Small
295 condition: SUCCESSFUL
297 - name: 'xtesting-onap-healthcheck-small-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
298 current-parameters: false
299 predefined-parameters: |
301 DEPLOY_TYPE=$DEPLOY_TYPE
302 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
303 INSTALLER_TYPE=$INSTALLER_TYPE
304 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
305 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
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 - Medium
321 condition: SUCCESSFUL
323 - name: 'xtesting-onap-healthcheck-medium-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
324 current-parameters: false
325 predefined-parameters: |
327 DEPLOY_TYPE=$DEPLOY_TYPE
328 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
329 INSTALLER_TYPE=$INSTALLER_TYPE
330 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
331 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
332 ONAP_VERSION=$ONAP_VERSION
334 TEST_TYPE=onap-healthcheck
335 ENGINE_VERSION=$ENGINE_VERSION
336 ENGINE_REFSPEC=$ENGINE_REFSPEC
337 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
338 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
339 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
340 XTESTING_REPO_URL=$XTESTING_REPO_URL
341 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
343 node-parameters: true
346 name: ONAP Healthcheck - Full
347 condition: SUCCESSFUL
349 - name: 'onap-healthcheck-periodic-full-{distro}-{installer-type}-{type}-{onap-branch}'
350 current-parameters: false
351 predefined-parameters: |
353 DEPLOY_TYPE=$DEPLOY_TYPE
354 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
355 INSTALLER_TYPE=$INSTALLER_TYPE
356 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
357 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
358 ONAP_VERSION=$ONAP_VERSION
360 TEST_TYPE=onap-healthcheck
361 ENGINE_VERSION=$ENGINE_VERSION
362 ENGINE_REFSPEC=$ENGINE_REFSPEC
363 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
364 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
365 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
366 XTESTING_REPO_URL=$XTESTING_REPO_URL
367 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
369 node-parameters: true
374 condition: SUCCESSFUL
376 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
377 current-parameters: false
378 predefined-parameters: |
380 DEPLOY_TYPE=$DEPLOY_TYPE
381 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
382 INSTALLER_TYPE=$INSTALLER_TYPE
383 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
384 ONAP_VERSION=$ONAP_VERSION
385 ONAP_FLAVOR=$ONAP_FLAVOR
386 ENGINE_VERSION=$ENGINE_VERSION
387 ENGINE_REFSPEC=$ENGINE_REFSPEC
388 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
389 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
390 XTESTING_REPO_URL=$XTESTING_REPO_URL
391 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
393 node-parameters: true
398 name: 'xtesting-{phase}-{flavor}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
408 - project-parameters:
410 branch: '{nordix-branch}'
411 - nordix-gerrit-parameters
414 default: 'jumphost-onap-ubuntu1804'
415 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
418 default: 'ubuntu1804'
419 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
421 name: PROVISIONER_TYPE
423 description: 'Provisioner to use for provisioning nodes'
427 description: 'Installer to use for deploying the scenario'
429 name: DEPLOY_SCENARIO
430 default: 'onap-oom-nofeature'
431 description: 'Scenario to deploy and test'
433 name: HEAT_ENVIRONMENT_FILE
434 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
435 description: 'Type of the deployment'
439 description: 'Type of the deployment. Overriden by upstream job.'
443 description: 'ONAP version to deploy'
447 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
450 default: 'oom-healthcheck'
451 description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
455 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
459 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
461 name: DEPLOY_SCENARIO_VERSION
463 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
465 name: DEPLOY_SCENARIO_REFSPEC
467 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
469 name: XTESTING_REPO_URL
470 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
471 description: 'URL to Nordix xtesting-onap repository'
473 name: ENGINE_ANSIBLE_PARAMS
475 description: 'Extra parameters that can be added when run the play books.'
481 - credentials-binding:
483 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
484 variable: OPENRC_FILE
487 timeout: '{build-timeout}'
488 - fix-workspace-permissions
492 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
493 branch: '{nordix-branch}'
499 - description-setter:
500 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
503 # vim: set ts=2 sw=2 expandtab: