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'
80 test-type: oom-healthcheck
83 test-type: onap-healthcheck
88 - '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
89 - 'xtesting-{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'
126 name: HEAT_ENVIRONMENT_FILE
127 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
128 description: 'Type of the deployment'
132 description: 'Type of the deployment'
135 default: '{onap-version}'
136 description: 'ONAP version to deploy'
139 default: '{onap-flavor}'
140 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
142 name: ENGINE_REPO_URL
143 default: 'https://gerrit.nordix.org/infra/engine.git'
144 description: 'URL to Nordix cloud-infra/engine repository'
147 default: '{engine-version}'
148 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
151 default: '{engine-refspec}'
152 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
154 name: DEPLOY_SCENARIO_VERSION
155 default: '{deploy-scenario-version}'
156 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
158 name: DEPLOY_SCENARIO_REFSPEC
159 default: '{deploy-scenario-refspec}'
160 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
162 name: XTESTING_REPO_URL
163 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
164 description: 'URL to Nordix xtesting-onap repository'
166 name: ENGINE_ANSIBLE_PARAMS
168 description: 'Extra parameters that can be added when run the play books.'
172 description: 'Cleanup leftovers of the previous run'
177 use-build-blocker: true
179 - 'cloud-infra-periodic-engine-.*'
191 - fix-workspace-permissions
195 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
196 branch: '{nordix-branch}'
202 - description-setter:
203 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
206 condition: SUCCESSFUL
208 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
209 current-parameters: false
210 predefined-parameters: |
212 DEPLOY_TYPE=$DEPLOY_TYPE
213 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
214 INSTALLER_TYPE=$INSTALLER_TYPE
215 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
216 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
217 ONAP_VERSION=$ONAP_VERSION
218 ONAP_FLAVOR=$ONAP_FLAVOR
219 ENGINE_VERSION=$ENGINE_VERSION
220 ENGINE_REFSPEC=$ENGINE_REFSPEC
221 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
222 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
223 XTESTING_REPO_URL=$XTESTING_REPO_URL
224 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
227 node-parameters: true
228 kill-phase-on: FAILURE
231 name: OOM Healthcheck
234 - name: 'xtesting-oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
235 current-parameters: false
236 predefined-parameters: |
238 DEPLOY_TYPE=$DEPLOY_TYPE
239 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
240 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
241 INSTALLER_TYPE=$INSTALLER_TYPE
242 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
243 ONAP_VERSION=$ONAP_VERSION
245 TEST_TYPE=oom-healthcheck
246 ENGINE_VERSION=$ENGINE_VERSION
247 ENGINE_REFSPEC=$ENGINE_REFSPEC
248 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
249 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
250 XTESTING_REPO_URL=$XTESTING_REPO_URL
251 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
253 node-parameters: true
257 name: ONAP Healthcheck
260 - name: 'xtesting-onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
261 current-parameters: false
262 predefined-parameters: |
264 DEPLOY_TYPE=$DEPLOY_TYPE
265 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
266 INSTALLER_TYPE=$INSTALLER_TYPE
267 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
268 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
269 ONAP_VERSION=$ONAP_VERSION
271 TEST_TYPE=onap-healthcheck
272 ENGINE_VERSION=$ENGINE_VERSION
273 ENGINE_REFSPEC=$ENGINE_REFSPEC
274 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
275 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
276 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
277 XTESTING_REPO_URL=$XTESTING_REPO_URL
278 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
280 node-parameters: true
283 - name: 'xtesting-onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
284 current-parameters: false
285 predefined-parameters: |
287 DEPLOY_TYPE=$DEPLOY_TYPE
288 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
289 INSTALLER_TYPE=$INSTALLER_TYPE
290 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
291 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
292 ONAP_VERSION=$ONAP_VERSION
294 TEST_TYPE=onap-healthcheck
295 ENGINE_VERSION=$ENGINE_VERSION
296 ENGINE_REFSPEC=$ENGINE_REFSPEC
297 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
298 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
299 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
300 XTESTING_REPO_URL=$XTESTING_REPO_URL
301 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
303 node-parameters: true
306 - name: 'xtesting-onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
307 current-parameters: false
308 predefined-parameters: |
310 DEPLOY_TYPE=$DEPLOY_TYPE
311 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
312 INSTALLER_TYPE=$INSTALLER_TYPE
313 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
314 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
315 ONAP_VERSION=$ONAP_VERSION
317 TEST_TYPE=onap-healthcheck
318 ENGINE_VERSION=$ENGINE_VERSION
319 ENGINE_REFSPEC=$ENGINE_REFSPEC
320 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
321 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
322 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
323 XTESTING_REPO_URL=$XTESTING_REPO_URL
324 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
326 node-parameters: true
329 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
330 current-parameters: false
331 predefined-parameters: |
333 DEPLOY_TYPE=$DEPLOY_TYPE
334 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
335 INSTALLER_TYPE=$INSTALLER_TYPE
336 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
337 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
338 ONAP_VERSION=$ONAP_VERSION
340 TEST_TYPE=onap-healthcheck
341 ENGINE_VERSION=$ENGINE_VERSION
342 ENGINE_REFSPEC=$ENGINE_REFSPEC
343 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
344 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
345 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
346 XTESTING_REPO_URL=$XTESTING_REPO_URL
347 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
349 node-parameters: true
356 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
357 current-parameters: false
358 predefined-parameters: |
360 DEPLOY_TYPE=$DEPLOY_TYPE
361 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
362 INSTALLER_TYPE=$INSTALLER_TYPE
363 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
364 ONAP_VERSION=$ONAP_VERSION
365 ONAP_FLAVOR=$ONAP_FLAVOR
366 ENGINE_VERSION=$ENGINE_VERSION
367 ENGINE_REFSPEC=$ENGINE_REFSPEC
368 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
369 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
370 XTESTING_REPO_URL=$XTESTING_REPO_URL
371 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
373 node-parameters: true
378 name: 'xtesting-{phase}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
388 - project-parameters:
390 branch: '{nordix-branch}'
391 - nordix-gerrit-parameters
394 default: 'jumphost-onap-ubuntu1804'
395 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
398 default: 'ubuntu1804'
399 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
401 name: PROVISIONER_TYPE
403 description: 'Provisioner to use for provisioning nodes'
407 description: 'Installer to use for deploying the scenario'
409 name: DEPLOY_SCENARIO
410 default: 'onap-oom-nofeature'
411 description: 'Scenario to deploy and test'
413 name: HEAT_ENVIRONMENT_FILE
414 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
415 description: 'Type of the deployment'
419 description: 'Type of the deployment. Overriden by upstream job.'
423 description: 'ONAP version to deploy'
426 default: '{onap-flavor}'
427 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
430 default: 'oom-healthcheck'
431 description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
435 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
439 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
441 name: DEPLOY_SCENARIO_VERSION
443 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
445 name: DEPLOY_SCENARIO_REFSPEC
447 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
449 name: XTESTING_REPO_URL
450 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
451 description: 'URL to Nordix xtesting-onap repository'
453 name: ENGINE_ANSIBLE_PARAMS
455 description: 'Extra parameters that can be added when run the play books.'
461 - credentials-binding:
463 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
464 variable: OPENRC_FILE
467 timeout: '{build-timeout}'
468 - fix-workspace-permissions
472 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
473 branch: '{nordix-branch}'
479 - description-setter:
480 description: $TEST_TYPE $ONAP_FLAVOR
483 # vim: set ts=2 sw=2 expandtab: