blob: d3456d3ef7fd490d76e0185c77cb9c88c3b3acda [file] [log] [blame]
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +02001---
2#
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
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
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.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
21#--------------------------------------------------------------------------------------
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +000022# The jobs declared in this JJB configuration file are used for deploying and testing
23# ONAP scenario onap-nofeature-noha.
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020024#--------------------------------------------------------------------------------------
25
26- project:
27 name: 'cloud-infra-periodic-onap'
28
29 project: 'infra/engine'
30
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +020031 cloud:
32 - city:
Fatih Degirmenci98d459a2019-10-17 18:50:20 +020033 slave-label: 'city-jumphost-ubuntu1804'
Fatih Degirmencid89b9f72019-10-18 16:28:56 +020034 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-onap'
Fatih Degirmencid559c292020-01-07 22:11:27 +010035 daily-trigger: '@midnight'
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +020036 - xerces:
Fatih Degirmenci98d459a2019-10-17 18:50:20 +020037 slave-label: 'xerces-jumphost-ubuntu1804'
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +020038 openrc-credentials-file: 'est-estinfra-openrcfile-xerces-lund-onap'
39 daily-trigger: '#@midnight'
40
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020041 onap-branch:
Fatih Degirmenci5112d4c2019-11-11 09:42:45 +010042 - 'elalto':
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020043 nordix-branch: master
Fatih Degirmenci5112d4c2019-11-11 09:42:45 +010044 onap-version: elalto
Fatih Degirmenci9c661b62019-08-23 07:49:43 +000045 onap-flavor: full
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020046 engine-version: master
Fatih Degirmencicf34ca72019-08-20 11:26:50 +000047 engine-refspec: master
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +020048 deploy-scenario: 'onap-nofeature-noha'
Fatih Degirmencicf34ca72019-08-20 11:26:50 +000049 deploy-scenario-version: master
50 deploy-scenario-refspec: master
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020051 disabled: false
Fatih Degirmenci785e5ac2019-08-29 08:36:30 +000052 delete-stack: 'yes'
Fatih Degirmenciac529ac2019-07-29 22:20:41 +020053 - 'master':
54 nordix-branch: master
55 onap-version: master
Fatih Degirmenci9c661b62019-08-23 07:49:43 +000056 onap-flavor: full
Fatih Degirmenciac529ac2019-07-29 22:20:41 +020057 engine-version: master
58 engine-refspec: master
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +020059 deploy-scenario: 'onap-nofeature-noha'
Fatih Degirmenciac529ac2019-07-29 22:20:41 +020060 deploy-scenario-version: master
61 deploy-scenario-refspec: master
Fatih Degirmencibe8394d2019-08-21 06:14:29 +000062 disabled: false
Fatih Degirmenci75ab7392019-12-11 15:02:09 +010063 delete-stack: 'yes'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020064
65 distro:
Fatih Degirmencif3afb6d2019-07-29 22:27:40 +020066 - ubuntu1804
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020067
Fatih Degirmencida8abf72019-08-23 17:18:25 +000068 ci-loop:
69 - daily
70
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020071 type:
72 - cloud:
Fatih Degirmenci714872e2019-08-24 11:16:38 +000073 pod-name: est-cloud
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020074 provisioner-type: heat
Fatih Degirmenciac529ac2019-07-29 22:20:41 +020075 installer-type: kubespray
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020076
Fatih Degirmencid6f228b2019-07-30 20:53:46 +020077 onap-other-phases:
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020078 - onap-deploy:
Fatih Degirmenci1a2d3cf2019-08-26 11:06:57 +000079 build-timeout: 210
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +020080 - oom-hc:
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020081 build-timeout: 30
Fatih Degirmenci0d464752019-07-30 12:14:02 +020082 test-type: oom-healthcheck
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020083 - promote-onap:
Fatih Degirmencib2f9bae2019-10-28 21:00:40 +010084 build-timeout: 240
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020085
Fatih Degirmencid6f228b2019-07-30 20:53:46 +020086 onap-healthcheck-phases:
afennerbbdc8342019-09-18 14:59:52 +010087 - onap-hc-core:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +020088 build-timeout: 30
89 test-type: onap-healthcheck
afennerbbdc8342019-09-18 14:59:52 +010090 - onap-hc-small:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +020091 build-timeout: 30
92 test-type: onap-healthcheck
afennerbbdc8342019-09-18 14:59:52 +010093 - onap-hc-medium:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +020094 build-timeout: 30
95 test-type: onap-healthcheck
afennerbbdc8342019-09-18 14:59:52 +010096 - onap-hc-full:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +020097 build-timeout: 30
98 test-type: onap-healthcheck
afennerbbdc8342019-09-18 14:59:52 +010099 - onap-hc-healthdist:
afennerda7ada62019-09-11 15:56:23 +0100100 build-timeout: 30
101 test-type: onap-healthcheck
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200102
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200103 jobs:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200104 - 'onap-online-{onap-flavor}-{distro}-{installer-type}-{cloud}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000105 - '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
106 - '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200107
108- job-template:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200109 name: 'onap-online-{onap-flavor}-{distro}-{installer-type}-{cloud}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200110
111 project-type: multijob
112
113 disabled: '{obj:disabled}'
114
Fatih Degirmencid89b9f72019-10-18 16:28:56 +0200115 concurrent: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200116
117 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200118 - project-parameters:
119 project: '{project}'
120 branch: '{nordix-branch}'
121 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200122 - onap-parameter-macro
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200123 - label:
124 name: SLAVE_LABEL
125 default: '{slave-label}'
126 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
127 - string:
128 name: DISTRO
129 default: '{distro}'
130 description: 'Distribution to use for configuring target nodes (networking etc.)'
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200131 - string:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200132 name: OPENSTACK_CLOUD_PROVIDER
133 default: '{cloud}'
134 description: 'Name of the cloud where this job is run'
135 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200136 name: ONAP_VERSION
137 default: '{onap-version}'
138 description: 'ONAP version to deploy'
139 - string:
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000140 name: ONAP_FLAVOR
141 default: '{onap-flavor}'
142 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
143 - string:
144 name: STACK_NAME
Fatih Degirmencie6fcd242019-08-27 16:54:58 +0000145 default: 'nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000146 - string:
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100147 name: KEYPAIR_NAME
148 default: 'keypair-nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
149 - string:
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200150 name: HEAT_ENVIRONMENT_FILENAME
151 default: "heat-environment-{cloud}-{distro}-full.yaml"
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200152 description: 'Type of the deployment'
153 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200154 name: ENGINE_VERSION
155 default: '{engine-version}'
156 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
157 - string:
158 name: ENGINE_REFSPEC
159 default: '{engine-refspec}'
160 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
161 - string:
162 name: DEPLOY_SCENARIO_VERSION
163 default: '{deploy-scenario-version}'
164 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
165 - string:
166 name: DEPLOY_SCENARIO_REFSPEC
167 default: '{deploy-scenario-refspec}'
168 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000169 - string:
170 name: POD_NAME
171 default: '{pod-name}'
172 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
Fatih Degirmenci7ad71132019-08-29 07:57:41 +0000173 - string:
Fatih Degirmencid293bfa2019-08-26 13:30:14 +0000174 name: DELETE_STACK
Fatih Degirmenci42a44982019-08-29 07:46:40 +0000175 default: '{delete-stack}'
Fatih Degirmenci7ad71132019-08-29 07:57:41 +0000176 description: 'Development purposes only! Whether delete the stack or not. It must either be yes or no. Setting this to no will increase the cost!'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200177
178 properties:
179 - logrotate
180 - build-blocker:
181 use-build-blocker: true
182 blocking-jobs:
183 - 'cloud-infra-periodic-engine-.*'
184 - 'onap-.*'
185 - 'k8-.*'
186 block-level: 'NODE'
187 - throttle:
188 max-per-node: 1
Fatih Degirmencid89b9f72019-10-18 16:28:56 +0200189 max-total: 1
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200190 option: project
191
192 wrappers:
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000193 - credentials-binding:
194 - file:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200195 credential-id: '{openrc-credentials-file}'
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000196 variable: OPENRC_FILE
197 - mask-passwords
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200198 - build-timeout:
Fatih Degirmencib2f9bae2019-10-28 21:00:40 +0100199 timeout: 630
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200200 - fix-workspace-permissions
Fatih Degirmenciec9ae932019-08-20 11:41:50 +0000201 - openstack:
202 single-use: True
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200203
Fatih Degirmenci42a44982019-08-29 07:46:40 +0000204 triggers:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200205 - timed: '{daily-trigger}'
Fatih Degirmenci42a44982019-08-29 07:46:40 +0000206
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200207 scm:
208 - git-scm:
209 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
210 branch: '{nordix-branch}'
211 refspec: ''
212 wipe_workspace: true
213 clean_before: false
214
215 builders:
216 - description-setter:
Fatih Degirmenci6e05fbf2019-08-25 13:48:37 +0000217 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
Fatih Degirmenciaf99e7e2019-08-22 21:29:02 +0000218 - shell: |
219 #!/bin/bash
Fatih Degirmenci3131a532019-11-29 06:41:44 +0000220 /bin/rm -rf /tmp/openrc && /bin/cp -f $OPENRC_FILE /tmp/openrc
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200221 - multijob:
Fatih Degirmenci53d78f42019-07-30 17:47:57 +0200222 name: Deploy ONAP using OOM
Fatih Degirmenci9cc78442019-08-23 08:23:57 +0000223 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200224 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000225 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200226 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200227 predefined-parameters: |
228 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200229 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200230 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200231 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200232 INSTALLER_TYPE=$INSTALLER_TYPE
233 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200234 ONAP_VERSION=$ONAP_VERSION
235 ONAP_FLAVOR=$ONAP_FLAVOR
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000236 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000237 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100238 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200239 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200240 ENGINE_VERSION=$ENGINE_VERSION
241 ENGINE_REFSPEC=$ENGINE_REFSPEC
242 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
243 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
244 XTESTING_REPO_URL=$XTESTING_REPO_URL
245 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
246 CLEANUP=$CLEANUP
247 git-revision: true
248 node-parameters: true
Fatih Degirmenci9cc78442019-08-23 08:23:57 +0000249 kill-phase-on: NEVER
250 abort-all-job: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200251 - multijob:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200252 name: K8S and OOM Healthcheck using xtesting
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200253 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200254 projects:
afennerbbdc8342019-09-18 14:59:52 +0100255 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200256 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200257 predefined-parameters: |
258 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200259 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200260 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200261 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200262 INSTALLER_TYPE=$INSTALLER_TYPE
263 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
264 ONAP_VERSION=$ONAP_VERSION
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200265 ONAP_FLAVOR=full
266 TEST_TYPE=oom-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000267 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000268 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100269 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200270 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200271 ENGINE_VERSION=$ENGINE_VERSION
272 ENGINE_REFSPEC=$ENGINE_REFSPEC
273 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
274 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
275 XTESTING_REPO_URL=$XTESTING_REPO_URL
276 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
277 CLEANUP=$CLEANUP
278 node-parameters: true
279 kill-phase-on: NEVER
280 abort-all-job: false
281 - multijob:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200282 name: ONAP Healthcheck using xtesting
Fatih Degirmencicfc06002019-10-03 11:26:59 +0200283 execution-type: SEQUENTIALLY
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200284 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200285 projects:
afennerbbdc8342019-09-18 14:59:52 +0100286 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200287 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200288 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200289 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200290 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200291 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200292 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200293 INSTALLER_TYPE=$INSTALLER_TYPE
294 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200295 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200296 ONAP_VERSION=$ONAP_VERSION
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200297 ONAP_FLAVOR=core
298 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000299 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000300 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100301 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200302 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200303 ENGINE_VERSION=$ENGINE_VERSION
304 ENGINE_REFSPEC=$ENGINE_REFSPEC
305 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
306 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200307 XTESTING_REPO_URL=$XTESTING_REPO_URL
308 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
309 CLEANUP=$CLEANUP
310 node-parameters: true
311 kill-phase-on: NEVER
312 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100313 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200314 current-parameters: false
315 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200316 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200317 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200318 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200319 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200320 INSTALLER_TYPE=$INSTALLER_TYPE
321 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200322 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200323 ONAP_VERSION=$ONAP_VERSION
324 ONAP_FLAVOR=small
325 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000326 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000327 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100328 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200329 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200330 ENGINE_VERSION=$ENGINE_VERSION
331 ENGINE_REFSPEC=$ENGINE_REFSPEC
332 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
333 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200334 XTESTING_REPO_URL=$XTESTING_REPO_URL
335 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
336 CLEANUP=$CLEANUP
337 node-parameters: true
338 kill-phase-on: NEVER
339 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100340 - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200341 current-parameters: false
342 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200343 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200344 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200345 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200346 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200347 INSTALLER_TYPE=$INSTALLER_TYPE
348 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200349 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200350 ONAP_VERSION=$ONAP_VERSION
351 ONAP_FLAVOR=medium
352 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000353 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000354 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100355 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200356 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200357 ENGINE_VERSION=$ENGINE_VERSION
358 ENGINE_REFSPEC=$ENGINE_REFSPEC
359 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
360 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200361 XTESTING_REPO_URL=$XTESTING_REPO_URL
362 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
363 CLEANUP=$CLEANUP
364 node-parameters: true
365 kill-phase-on: NEVER
366 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100367 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200368 current-parameters: false
369 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200370 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200371 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200372 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200373 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200374 INSTALLER_TYPE=$INSTALLER_TYPE
375 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200376 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200377 ONAP_VERSION=$ONAP_VERSION
378 ONAP_FLAVOR=full
379 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000380 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000381 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100382 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200383 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200384 ENGINE_VERSION=$ENGINE_VERSION
385 ENGINE_REFSPEC=$ENGINE_REFSPEC
386 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
387 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200388 XTESTING_REPO_URL=$XTESTING_REPO_URL
389 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
390 CLEANUP=$CLEANUP
391 node-parameters: true
392 kill-phase-on: NEVER
393 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100394 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
afennerda7ada62019-09-11 15:56:23 +0100395 current-parameters: false
396 predefined-parameters: |
397 SLAVE_LABEL=$SLAVE_LABEL
398 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200399 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
afennerda7ada62019-09-11 15:56:23 +0100400 PROVISIONER_TYPE=$PROVISIONER_TYPE
401 INSTALLER_TYPE=$INSTALLER_TYPE
402 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
403 DEPLOY_TYPE=$DEPLOY_TYPE
404 ONAP_VERSION=$ONAP_VERSION
405 ONAP_FLAVOR=healthdist
406 TEST_TYPE=onap-healthcheck
407 POD_NAME=$POD_NAME
408 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100409 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200410 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
afennerda7ada62019-09-11 15:56:23 +0100411 ENGINE_VERSION=$ENGINE_VERSION
412 ENGINE_REFSPEC=$ENGINE_REFSPEC
413 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
414 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
415 XTESTING_REPO_URL=$XTESTING_REPO_URL
416 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
417 CLEANUP=$CLEANUP
418 node-parameters: true
419 kill-phase-on: NEVER
420 abort-all-job: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200421 - multijob:
Fatih Degirmenci53d78f42019-07-30 17:47:57 +0200422 name: Promote ONAP (not activated)
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200423 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200424 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000425 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200426 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200427 predefined-parameters: |
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200428 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200429 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200430 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200431 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200432 INSTALLER_TYPE=$INSTALLER_TYPE
433 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
434 ONAP_VERSION=$ONAP_VERSION
435 ONAP_FLAVOR=$ONAP_FLAVOR
436 ENGINE_VERSION=$ENGINE_VERSION
437 ENGINE_REFSPEC=$ENGINE_REFSPEC
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000438 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000439 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100440 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200441 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200442 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
443 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
444 XTESTING_REPO_URL=$XTESTING_REPO_URL
445 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
446 CLEANUP=$CLEANUP
447 node-parameters: true
448 kill-phase-on: NEVER
449 abort-all-job: false
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +0000450
451 publishers:
452 - postbuildscript:
453 builders:
454 - role: SLAVE
455 build-on:
456 - SUCCESS
457 - FAILURE
458 - ABORTED
459 - NOT_BUILT
460 - UNSTABLE
461 build-steps:
462 - shell:
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000463 !include-raw-escape: ./wait-for-pkg-manager.sh
464 - shell:
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +0000465 !include-raw: ./delete-heat-stack.sh
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200466
467- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000468 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200469
470 disabled: false
471
472 concurrent: true
473
474 properties:
475 - logrotate
476
477 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200478 - project-parameters:
479 project: '{project}'
480 branch: '{nordix-branch}'
481 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200482 - onap-parameter-macro
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200483 - label:
484 name: SLAVE_LABEL
485 default: 'xerces-jumphost-onap-ubuntu1804'
486 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
487 - string:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200488 name: OPENSTACK_CLOUD_PROVIDER
489 default: 'city'
490 description: 'Name of the cloud where this job is run'
491 - string:
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200492 name: DISTRO
493 default: 'ubuntu1804'
494 description: 'Distribution to use for configuring target nodes (networking etc.)'
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200495 - string:
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000496 name: ONAP_FLAVOR
497 default: '{onap-flavor}'
498 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
499 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200500 name: ONAP_VERSION
501 default: '{onap-version}'
502 description: 'ONAP version to deploy'
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200503 - string:
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200504 name: HEAT_ENVIRONMENT_FILENAME
505 default: "heat-environment-full.yaml"
506 description: 'Type of the deployment'
507 - string:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200508 name: HEAT_ENVIRONMENT_FILE
Fatih Degirmencid559c292020-01-07 22:11:27 +0100509 default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200510 description: 'Type of the deployment'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200511
512 wrappers:
Fatih Degirmencia10efd12019-07-29 22:47:54 +0200513 - mask-passwords
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200514 - build-timeout:
515 timeout: '{build-timeout}'
516 - fix-workspace-permissions
Fatih Degirmencie57cd6a2019-10-22 09:56:35 +0200517 - credentials-binding:
518 - username-password-separated:
519 credential-id: 'nordix-cicd-arm-credentials'
520 username: NORDIX_ARM_USERNAME
521 password: NORDIX_ARM_TOKEN
522 - username-password-separated:
523 credential-id: 'nordix-cicd-harbor-credentials'
524 username: NORDIX_HARBOR_USERNAME
525 password: NORDIX_HARBOR_PASSWORD
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200526
527 scm:
528 - git-scm:
529 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
530 branch: '{nordix-branch}'
531 refspec: ''
532 wipe_workspace: true
533 clean_before: false
534
535 builders:
536 - description-setter:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200537 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200538 - '{onap-other-phases}-macro'
539
540- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000541 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200542
543 disabled: false
544
545 concurrent: true
546
547 properties:
548 - logrotate
549
550 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200551 - project-parameters:
552 project: '{project}'
553 branch: '{nordix-branch}'
554 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200555 - onap-parameter-macro
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200556 - label:
557 name: SLAVE_LABEL
558 default: 'xerces-jumphost-onap-ubuntu1804'
559 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
560 - string:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200561 name: OPENSTACK_CLOUD_PROVIDER
562 default: 'city'
563 description: 'Name of the cloud where this job is run'
564 - string:
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200565 name: DISTRO
566 default: 'ubuntu1804'
567 description: 'Distribution to use for configuring target nodes (networking etc.)'
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200568 - string:
569 name: ONAP_VERSION
570 default: '{onap-version}'
571 description: 'ONAP version to deploy'
572 - string:
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200573 name: HEAT_ENVIRONMENT_FILENAME
574 default: "heat-environment-full.yaml"
575 description: 'Type of the deployment'
576 - string:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200577 name: HEAT_ENVIRONMENT_FILE
Fatih Degirmenci108bf442020-01-08 10:28:24 +0100578 default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200579 description: 'Type of the deployment'
580 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200581 name: ENGINE_VERSION
582 default: '{engine-version}'
583 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
584 - string:
585 name: ENGINE_REFSPEC
586 default: '{engine-refspec}'
587 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
588 - string:
589 name: DEPLOY_SCENARIO_VERSION
590 default: '{deploy-scenario-version}'
591 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
592 - string:
593 name: DEPLOY_SCENARIO_REFSPEC
594 default: '{deploy-scenario-refspec}'
595 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000596 - string:
597 name: POD_NAME
598 default: '{pod-name}'
599 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200600
601 wrappers:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200602 - mask-passwords
603 - build-timeout:
604 timeout: '{build-timeout}'
605 - fix-workspace-permissions
606
607 scm:
608 - git-scm:
609 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
610 branch: '{nordix-branch}'
611 refspec: ''
612 wipe_workspace: true
613 clean_before: false
614
615 builders:
616 - description-setter:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200617 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200618 - 'onap-healthcheck-macro'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200619
620# vim: set ts=2 sw=2 expandtab: