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 deploying and testing
23 # ONAP scenario onap-nofeature-noha.
24 #--------------------------------------------------------------------------------------
27 name: 'onap-deploy-test-online'
29 project: 'infra/engine'
36 deploy-scenario-version: master
37 deploy-scenario-refspec: master
47 engine-version: master
48 engine-refspec: master
53 engine-version: master
54 engine-refspec: master
60 provisioner-type: bifrost
61 installer-type: kubespray
65 execution-mode: online-deployment
69 slave-label: 'engine-jumphost-online-ubuntu1804-fra'
70 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
71 daily-trigger: '@midnight'
81 test-type: oom-healthcheck
84 test-type: onap-healthcheck
87 - '{deploy-scenario}-{onap-profile}-{environment-type}-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
88 - 'onap-{onap-profile}-{environment-type}-{job-phase}-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
91 name: '{deploy-scenario}-{onap-profile}-{environment-type}-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
93 project-type: multijob
95 disabled: '{obj:disabled}'
100 - project-parameters:
102 branch: '{nordix-branch}'
103 - nordix-gerrit-parameters
106 default: '{slave-label}'
107 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
109 name: PROVISIONER_TYPE
111 description: 'Provisioner to use for provisioning nodes'
115 description: 'Installer to use for deploying the scenario'
117 name: DEPLOY_SCENARIO
118 default: '{deploy-scenario}'
119 description: 'Scenario to deploy and test'
123 description: 'Type of the deployment'
127 description: 'Distribution to use for configuring target nodes (networking etc.)'
130 default: '{onap-version}'
131 description: 'ONAP version to deploy'
134 default: '{onap-profile}'
135 description: 'ONAP profile to deploy - could be sdc or so.'
137 name: OPENSTACK_CLOUD_PROVIDER
139 description: 'Name of the cloud where this job is run'
142 default: 'nordix-cicd-{deploy-scenario}-{onap-profile}-{onap-branch}'
143 description: 'Stack to create'
146 default: 'keypair-nordix-cicd-{deploy-scenario}-{onap-profile}-{onap-branch}'
147 description: 'Keypair to create and use'
149 name: HEAT_ENVIRONMENT_FILENAME
150 default: 'heat-environment-{cloud}-{distro}-{onap-profile}.yaml'
151 description: 'Heat environment file to use'
154 default: '{execution-mode}'
155 description: 'Engine execution mode - could be online-deployment or offline-deployment'
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.'
175 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
178 default: 'oom-healthcheck'
179 description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
181 name: NORDIX_ARM_REPO_URL
182 default: 'https://artifactory.nordix.org/artifactory'
183 description: 'URL to Nordix Artifactory'
185 name: NORDIX_HARBOR_REPO_URL
186 default: 'registry.nordix.org'
187 description: 'URL to Nordix Harbor'
189 name: XTESTING_REPO_URL
190 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
191 description: 'URL to Nordix xtesting-onap repository'
193 name: ENGINE_ANSIBLE_PARAMS
195 description: 'Extra parameters that can be added when run the play books.'
200 use-build-blocker: true
202 - 'cloud-infra-verify-engine-.*'
203 - 'cloud-infra-verify-scenario-.*'
204 - 'cloud-infra-periodic-engine-.*'
219 - fix-workspace-permissions
222 - timed: '{daily-trigger}'
226 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
227 branch: '{nordix-branch}'
233 - description-setter:
234 description: $DEPLOY_SCENARIO | $ONAP_PROFILE
236 name: Deploy ONAP using OOM (not activated)
239 - name: 'onap-{onap-profile}-{environment-type}-deploy-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
240 current-parameters: false
241 predefined-parameters: |
243 PROVISIONER_TYPE=$PROVISIONER_TYPE
244 INSTALLER_TYPE=$INSTALLER_TYPE
245 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
246 ONAP_VERSION=$ONAP_VERSION
247 ONAP_PROFILE=$ONAP_PROFILE
249 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
250 STACK_NAME=$STACK_NAME
251 KEYPAIR_NAME=$KEYPAIR_NAME
252 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
253 EXECUTION_MODE=$EXECUTION_MODE
254 ENGINE_VERSION=$ENGINE_VERSION
255 ENGINE_REFSPEC=$ENGINE_REFSPEC
256 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
257 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
258 XTESTING_REPO_URL=$XTESTING_REPO_URL
259 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
261 node-parameters: true
265 name: K8S and OOM Healthcheck using xtesting (not activated)
268 - name: 'onap-{onap-profile}-{environment-type}-oom-healthcheck-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
269 current-parameters: false
270 predefined-parameters: |
272 PROVISIONER_TYPE=$PROVISIONER_TYPE
273 INSTALLER_TYPE=$INSTALLER_TYPE
274 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
275 ONAP_VERSION=$ONAP_VERSION
276 ONAP_PROFILE=$ONAP_PROFILE
277 TEST_TYPE=oom-healthcheck
279 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
280 STACK_NAME=$STACK_NAME
281 KEYPAIR_NAME=$KEYPAIR_NAME
282 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
283 EXECUTION_MODE=$EXECUTION_MODE
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
290 node-parameters: true
294 name: ONAP Healthcheck using xtesting (not activated)
295 execution-type: SEQUENTIALLY
298 - name: 'onap-{onap-profile}-{environment-type}-healthcheck-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
299 current-parameters: false
300 predefined-parameters: |
301 SLAVE_LABEL=$SLAVE_LABEL
303 PROVISIONER_TYPE=$PROVISIONER_TYPE
304 INSTALLER_TYPE=$INSTALLER_TYPE
305 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
306 ONAP_VERSION=$ONAP_VERSION
307 ONAP_PROFILE=$ONAP_PROFILE
308 TEST_TYPE=sdc-healthcheck
310 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
311 STACK_NAME=$STACK_NAME
312 KEYPAIR_NAME=$KEYPAIR_NAME
313 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
314 ENGINE_VERSION=$ENGINE_VERSION
315 EXECUTION_MODE=$EXECUTION_MODE
316 ENGINE_REFSPEC=$ENGINE_REFSPEC
317 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
318 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
319 XTESTING_REPO_URL=$XTESTING_REPO_URL
320 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
321 node-parameters: true
324 - name: 'onap-{onap-profile}-{environment-type}-healthdist-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
325 current-parameters: false
326 predefined-parameters: |
327 SLAVE_LABEL=$SLAVE_LABEL
329 PROVISIONER_TYPE=$PROVISIONER_TYPE
330 INSTALLER_TYPE=$INSTALLER_TYPE
331 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
332 ONAP_VERSION=$ONAP_VERSION
333 ONAP_PROFILE=$ONAP_PROFILE
334 TEST_TYPE=onap-healthcheck
336 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
337 STACK_NAME=$STACK_NAME
338 KEYPAIR_NAME=$KEYPAIR_NAME
339 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
340 EXECUTION_MODE=$EXECUTION_MODE
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 XTESTING_REPO_URL=$XTESTING_REPO_URL
346 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
347 node-parameters: true
352 name: 'onap-{onap-profile}-{environment-type}-{job-phase}-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
362 - onap-parameter-macro
367 timeout: '{build-timeout}'
368 - fix-workspace-permissions
369 - credentials-binding:
370 - username-password-separated:
371 credential-id: 'nordix-cicd-arm-credentials'
372 username: NORDIX_ARM_USERNAME
373 password: NORDIX_ARM_TOKEN
374 - username-password-separated:
375 credential-id: 'nordix-cicd-harbor-credentials'
376 username: NORDIX_HARBOR_USERNAME
377 password: NORDIX_HARBOR_PASSWORD
381 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
382 branch: '{nordix-branch}'
388 - description-setter:
389 description: $DEPLOY_SCENARIO | $ONAP_PROFILE
390 - 'onap-{job-phase}-builder-macro'
392 # vim: set ts=2 sw=2 expandtab: