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
60 installer-type: kubespray
64 provisioner-type: heat
65 slave-label: 'jumphost-onap-ubuntu1804'
78 - '{deploy-scenario}-periodic-{distro}-{type}-{onap-branch}'
79 - '{phase}-periodic-{distro}-{type}-{onap-branch}'
82 name: '{deploy-scenario}-periodic-{distro}-{type}-{onap-branch}'
84 project-type: multijob
86 disabled: '{obj:disabled}'
93 branch: '{nordix-branch}'
96 default: '{slave-label}'
97 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
101 description: 'Distribution to use for configuring target nodes (networking etc.)'
103 name: PROVISIONER_TYPE
104 default: '{provisioner-type}'
105 description: 'Provisioner to use for provisioning nodes'
108 default: '{installer-type}'
109 description: 'Installer to use for deploying the scenario'
111 name: DEPLOY_SCENARIO
112 default: '{deploy-scenario}'
113 description: 'Scenario to deploy and test'
115 name: HEAT_ENVIRONMENT_FILE
116 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
117 description: 'Type of the deployment'
121 description: 'Type of the deployment'
124 default: '{onap-version}'
125 description: 'ONAP version to deploy'
128 default: '{onap-flavor}'
129 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
131 name: ENGINE_REPO_URL
132 default: 'https://gerrit.nordix.org/infra/engine.git'
133 description: 'URL to Nordix cloud-infra/engine repository'
136 default: '{engine-version}'
137 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
140 default: '{engine-refspec}'
141 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
143 name: DEPLOY_SCENARIO_VERSION
144 default: '{deploy-scenario-version}'
145 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
147 name: DEPLOY_SCENARIO_REFSPEC
148 default: '{deploy-scenario-refspec}'
149 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
151 name: XTESTING_REPO_URL
152 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
153 description: 'URL to Nordix xtesting-onap repository'
155 name: ENGINE_ANSIBLE_PARAMS
157 description: 'Extra parameters that can be added when run the play books.'
161 description: 'Cleanup leftovers of the previous run'
166 use-build-blocker: true
168 - 'cloud-infra-periodic-engine-.*'
180 - fix-workspace-permissions
184 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
185 branch: '{nordix-branch}'
191 - description-setter:
192 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
195 condition: SUCCESSFUL
197 - name: 'onap-deploy-periodic-{distro}-{type}-{onap-branch}'
198 current-parameters: true
199 predefined-parameters: |
201 DEPLOY_TYPE=$DEPLOY_TYPE
202 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
203 INSTALLER_TYPE=$INSTALLER_TYPE
204 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
205 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
206 ONAP_VERSION=$ONAP_VERSION
207 ONAP_FLAVOR=$ONAP_FLAVOR
208 ENGINE_VERSION=$ENGINE_VERSION
209 ENGINE_REFSPEC=$ENGINE_REFSPEC
210 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
211 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
212 XTESTING_REPO_URL=$XTESTING_REPO_URL
213 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
216 node-parameters: true
217 kill-phase-on: FAILURE
220 name: OOM Healthcheck
221 condition: SUCCESSFUL
223 - name: 'oom-healthcheck-periodic-{distro}-{type}-{onap-branch}'
224 current-parameters: true
225 predefined-parameters: |
227 DEPLOY_TYPE=$DEPLOY_TYPE
228 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
229 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
230 INSTALLER_TYPE=$INSTALLER_TYPE
231 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
232 ONAP_VERSION=$ONAP_VERSION
233 ONAP_FLAVOR=$ONAP_FLAVOR
234 ENGINE_VERSION=$ENGINE_VERSION
235 ENGINE_REFSPEC=$ENGINE_REFSPEC
236 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
237 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
238 XTESTING_REPO_URL=$XTESTING_REPO_URL
239 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
241 node-parameters: true
245 name: ONAP Healthcheck
246 condition: SUCCESSFUL
248 - name: 'onap-healthcheck-periodic-{distro}-{type}-{onap-branch}'
249 current-parameters: true
250 predefined-parameters: |
252 DEPLOY_TYPE=$DEPLOY_TYPE
253 PROVISIIONER_TYPE=$PROVISIIONER_TYPE
254 INSTALLER_TYPE=$INSTALLER_TYPE
255 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
256 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
257 ONAP_VERSION=$ONAP_VERSION
258 ONAP_FLAVOR=$ONAP_FLAVOR
259 ENGINE_VERSION=$ENGINE_VERSION
260 ENGINE_REFSPEC=$ENGINE_REFSPEC
261 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
262 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
263 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
264 XTESTING_REPO_URL=$XTESTING_REPO_URL
265 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
267 node-parameters: true
272 condition: SUCCESSFUL
274 - name: 'promote-onap-periodic-{distro}-{type}-{onap-branch}'
275 current-parameters: true
276 predefined-parameters: |
278 DEPLOY_TYPE=$DEPLOY_TYPE
279 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
280 INSTALLER_TYPE=$INSTALLER_TYPE
281 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
282 ONAP_VERSION=$ONAP_VERSION
283 ONAP_FLAVOR=$ONAP_FLAVOR
284 ENGINE_VERSION=$ENGINE_VERSION
285 ENGINE_REFSPEC=$ENGINE_REFSPEC
286 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
287 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
288 XTESTING_REPO_URL=$XTESTING_REPO_URL
289 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
291 node-parameters: true
296 name: '{phase}-periodic-{distro}-{type}-{onap-branch}'
306 - project-parameters:
308 branch: '{nordix-branch}'
311 default: 'jumphost-onap-ubuntu1804'
312 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
315 default: 'ubuntu1804'
316 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
318 name: PROVISIONER_TYPE
320 description: 'Provisioner to use for provisioning nodes'
324 description: 'Installer to use for deploying the scenario'
326 name: DEPLOY_SCENARIO
327 default: 'onap-oom-nofeature'
328 description: 'Scenario to deploy and test'
330 name: HEAT_ENVIRONMENT_FILE
331 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
332 description: 'Type of the deployment'
336 description: 'Type of the deployment. Overriden by upstream job.'
340 description: 'ONAP version to deploy'
343 default: '{onap-flavor}'
344 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
348 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
352 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
354 name: DEPLOY_SCENARIO_VERSION
356 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
358 name: DEPLOY_SCENARIO_REFSPEC
360 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
362 name: XTESTING_REPO_URL
363 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
364 description: 'URL to Nordix xtesting-onap repository'
366 name: ENGINE_ANSIBLE_PARAMS
368 description: 'Extra parameters that can be added when run the play books.'
375 timeout: '{build-timeout}'
376 - fix-workspace-permissions
380 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
381 branch: '{nordix-branch}'
387 - description-setter:
388 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
391 # vim: set ts=2 sw=2 expandtab: