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'
86 - '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
87 - '{phase}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
90 name: '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
92 project-type: multijob
94 disabled: '{obj:disabled}'
101 branch: '{nordix-branch}'
102 - nordix-gerrit-parameters
105 default: '{slave-label}'
106 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
110 description: 'Distribution to use for configuring target nodes (networking etc.)'
112 name: PROVISIONER_TYPE
113 default: '{provisioner-type}'
114 description: 'Provisioner to use for provisioning nodes'
117 default: '{installer-type}'
118 description: 'Installer to use for deploying the scenario'
120 name: DEPLOY_SCENARIO
121 default: '{deploy-scenario}'
122 description: 'Scenario to deploy and test'
124 name: HEAT_ENVIRONMENT_FILE
125 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
126 description: 'Type of the deployment'
130 description: 'Type of the deployment'
133 default: '{onap-version}'
134 description: 'ONAP version to deploy'
137 default: '{onap-flavor}'
138 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
140 name: ENGINE_REPO_URL
141 default: 'https://gerrit.nordix.org/infra/engine.git'
142 description: 'URL to Nordix cloud-infra/engine repository'
145 default: '{engine-version}'
146 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
149 default: '{engine-refspec}'
150 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
152 name: DEPLOY_SCENARIO_VERSION
153 default: '{deploy-scenario-version}'
154 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
156 name: DEPLOY_SCENARIO_REFSPEC
157 default: '{deploy-scenario-refspec}'
158 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
160 name: XTESTING_REPO_URL
161 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
162 description: 'URL to Nordix xtesting-onap repository'
164 name: ENGINE_ANSIBLE_PARAMS
166 description: 'Extra parameters that can be added when run the play books.'
170 description: 'Cleanup leftovers of the previous run'
175 use-build-blocker: true
177 - 'cloud-infra-periodic-engine-.*'
189 - fix-workspace-permissions
193 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
194 branch: '{nordix-branch}'
200 - description-setter:
201 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
204 condition: SUCCESSFUL
206 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
207 current-parameters: true
208 predefined-parameters: |
210 DEPLOY_TYPE=$DEPLOY_TYPE
211 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
212 INSTALLER_TYPE=$INSTALLER_TYPE
213 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
214 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
215 ONAP_VERSION=$ONAP_VERSION
216 ONAP_FLAVOR=$ONAP_FLAVOR
217 ENGINE_VERSION=$ENGINE_VERSION
218 ENGINE_REFSPEC=$ENGINE_REFSPEC
219 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
220 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
221 XTESTING_REPO_URL=$XTESTING_REPO_URL
222 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
225 node-parameters: true
226 kill-phase-on: FAILURE
229 name: OOM Healthcheck
230 condition: SUCCESSFUL
232 - name: 'oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
233 current-parameters: true
234 predefined-parameters: |
236 DEPLOY_TYPE=$DEPLOY_TYPE
237 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
238 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
239 INSTALLER_TYPE=$INSTALLER_TYPE
240 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
241 ONAP_VERSION=$ONAP_VERSION
242 ONAP_FLAVOR=$ONAP_FLAVOR
243 ENGINE_VERSION=$ENGINE_VERSION
244 ENGINE_REFSPEC=$ENGINE_REFSPEC
245 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
246 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
247 XTESTING_REPO_URL=$XTESTING_REPO_URL
248 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
250 node-parameters: true
254 name: ONAP Healthcheck
255 condition: SUCCESSFUL
257 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
258 current-parameters: true
259 predefined-parameters: |
261 DEPLOY_TYPE=$DEPLOY_TYPE
262 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
263 INSTALLER_TYPE=$INSTALLER_TYPE
264 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
265 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
266 ONAP_VERSION=$ONAP_VERSION
267 ONAP_FLAVOR=$ONAP_FLAVOR
268 ENGINE_VERSION=$ENGINE_VERSION
269 ENGINE_REFSPEC=$ENGINE_REFSPEC
270 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
271 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
272 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
273 XTESTING_REPO_URL=$XTESTING_REPO_URL
274 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
276 node-parameters: true
281 condition: SUCCESSFUL
283 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
284 current-parameters: true
285 predefined-parameters: |
287 DEPLOY_TYPE=$DEPLOY_TYPE
288 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
289 INSTALLER_TYPE=$INSTALLER_TYPE
290 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
291 ONAP_VERSION=$ONAP_VERSION
292 ONAP_FLAVOR=$ONAP_FLAVOR
293 ENGINE_VERSION=$ENGINE_VERSION
294 ENGINE_REFSPEC=$ENGINE_REFSPEC
295 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
296 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
297 XTESTING_REPO_URL=$XTESTING_REPO_URL
298 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
300 node-parameters: true
305 name: '{phase}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
315 - project-parameters:
317 branch: '{nordix-branch}'
318 - nordix-gerrit-parameters
321 default: 'jumphost-onap-ubuntu1804'
322 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
325 default: 'ubuntu1804'
326 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
328 name: PROVISIONER_TYPE
330 description: 'Provisioner to use for provisioning nodes'
334 description: 'Installer to use for deploying the scenario'
336 name: DEPLOY_SCENARIO
337 default: 'onap-oom-nofeature'
338 description: 'Scenario to deploy and test'
340 name: HEAT_ENVIRONMENT_FILE
341 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
342 description: 'Type of the deployment'
346 description: 'Type of the deployment. Overriden by upstream job.'
350 description: 'ONAP version to deploy'
353 default: '{onap-flavor}'
354 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
358 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
362 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
364 name: DEPLOY_SCENARIO_VERSION
366 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
368 name: DEPLOY_SCENARIO_REFSPEC
370 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
372 name: XTESTING_REPO_URL
373 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
374 description: 'URL to Nordix xtesting-onap repository'
376 name: ENGINE_ANSIBLE_PARAMS
378 description: 'Extra parameters that can be added when run the play books.'
385 timeout: '{build-timeout}'
386 - fix-workspace-permissions
390 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
391 branch: '{nordix-branch}'
397 - description-setter:
398 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
401 # vim: set ts=2 sw=2 expandtab: