blob: 4af1d400e135dc0145643452b09904701c6a90cd [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:
Fatih Degirmencifc0bd712020-01-21 12:27:10 +0100183 - 'cloud-infra-verify-engine-.*'
184 - 'cloud-infra-verify-scenario-.*'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200185 - 'cloud-infra-periodic-engine-.*'
186 - 'onap-.*'
187 - 'k8-.*'
Fatih Degirmencifc0bd712020-01-21 12:27:10 +0100188 - 'os-.*'
189 - 'nolabs-.*'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200190 block-level: 'NODE'
191 - throttle:
192 max-per-node: 1
Fatih Degirmencid89b9f72019-10-18 16:28:56 +0200193 max-total: 1
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200194 option: project
195
196 wrappers:
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000197 - credentials-binding:
198 - file:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200199 credential-id: '{openrc-credentials-file}'
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000200 variable: OPENRC_FILE
201 - mask-passwords
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200202 - build-timeout:
Fatih Degirmencib2f9bae2019-10-28 21:00:40 +0100203 timeout: 630
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200204 - fix-workspace-permissions
Fatih Degirmenciec9ae932019-08-20 11:41:50 +0000205 - openstack:
206 single-use: True
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200207
Fatih Degirmenci42a44982019-08-29 07:46:40 +0000208 triggers:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200209 - timed: '{daily-trigger}'
Fatih Degirmenci42a44982019-08-29 07:46:40 +0000210
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200211 scm:
212 - git-scm:
213 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
214 branch: '{nordix-branch}'
215 refspec: ''
216 wipe_workspace: true
217 clean_before: false
218
219 builders:
220 - description-setter:
Fatih Degirmenci6e05fbf2019-08-25 13:48:37 +0000221 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
Fatih Degirmenciaf99e7e2019-08-22 21:29:02 +0000222 - shell: |
223 #!/bin/bash
Fatih Degirmenci3131a532019-11-29 06:41:44 +0000224 /bin/rm -rf /tmp/openrc && /bin/cp -f $OPENRC_FILE /tmp/openrc
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200225 - multijob:
Fatih Degirmenci53d78f42019-07-30 17:47:57 +0200226 name: Deploy ONAP using OOM
Fatih Degirmenci9cc78442019-08-23 08:23:57 +0000227 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200228 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000229 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200230 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200231 predefined-parameters: |
232 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200233 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200234 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200235 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200236 INSTALLER_TYPE=$INSTALLER_TYPE
237 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200238 ONAP_VERSION=$ONAP_VERSION
239 ONAP_FLAVOR=$ONAP_FLAVOR
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000240 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000241 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100242 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200243 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200244 ENGINE_VERSION=$ENGINE_VERSION
245 ENGINE_REFSPEC=$ENGINE_REFSPEC
246 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
247 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
248 XTESTING_REPO_URL=$XTESTING_REPO_URL
249 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
250 CLEANUP=$CLEANUP
251 git-revision: true
252 node-parameters: true
Fatih Degirmenci9cc78442019-08-23 08:23:57 +0000253 kill-phase-on: NEVER
254 abort-all-job: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200255 - multijob:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200256 name: K8S and OOM Healthcheck using xtesting
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200257 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200258 projects:
afennerbbdc8342019-09-18 14:59:52 +0100259 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200260 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200261 predefined-parameters: |
262 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200263 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200264 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200265 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200266 INSTALLER_TYPE=$INSTALLER_TYPE
267 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
268 ONAP_VERSION=$ONAP_VERSION
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200269 ONAP_FLAVOR=full
270 TEST_TYPE=oom-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000271 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000272 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100273 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200274 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200275 ENGINE_VERSION=$ENGINE_VERSION
276 ENGINE_REFSPEC=$ENGINE_REFSPEC
277 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
278 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
279 XTESTING_REPO_URL=$XTESTING_REPO_URL
280 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
281 CLEANUP=$CLEANUP
282 node-parameters: true
283 kill-phase-on: NEVER
284 abort-all-job: false
285 - multijob:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200286 name: ONAP Healthcheck using xtesting
Fatih Degirmencicfc06002019-10-03 11:26:59 +0200287 execution-type: SEQUENTIALLY
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200288 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200289 projects:
afennerbbdc8342019-09-18 14:59:52 +0100290 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200291 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200292 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200293 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200294 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200295 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200296 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200297 INSTALLER_TYPE=$INSTALLER_TYPE
298 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200299 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200300 ONAP_VERSION=$ONAP_VERSION
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200301 ONAP_FLAVOR=core
302 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000303 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000304 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100305 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200306 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200307 ENGINE_VERSION=$ENGINE_VERSION
308 ENGINE_REFSPEC=$ENGINE_REFSPEC
309 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
310 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200311 XTESTING_REPO_URL=$XTESTING_REPO_URL
312 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
313 CLEANUP=$CLEANUP
314 node-parameters: true
315 kill-phase-on: NEVER
316 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100317 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200318 current-parameters: false
319 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200320 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200321 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200322 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200323 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200324 INSTALLER_TYPE=$INSTALLER_TYPE
325 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200326 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200327 ONAP_VERSION=$ONAP_VERSION
328 ONAP_FLAVOR=small
329 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000330 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000331 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100332 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200333 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200334 ENGINE_VERSION=$ENGINE_VERSION
335 ENGINE_REFSPEC=$ENGINE_REFSPEC
336 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
337 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200338 XTESTING_REPO_URL=$XTESTING_REPO_URL
339 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
340 CLEANUP=$CLEANUP
341 node-parameters: true
342 kill-phase-on: NEVER
343 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100344 - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200345 current-parameters: false
346 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200347 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200348 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200349 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200350 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200351 INSTALLER_TYPE=$INSTALLER_TYPE
352 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200353 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200354 ONAP_VERSION=$ONAP_VERSION
355 ONAP_FLAVOR=medium
356 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000357 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000358 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100359 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200360 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200361 ENGINE_VERSION=$ENGINE_VERSION
362 ENGINE_REFSPEC=$ENGINE_REFSPEC
363 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
364 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200365 XTESTING_REPO_URL=$XTESTING_REPO_URL
366 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
367 CLEANUP=$CLEANUP
368 node-parameters: true
369 kill-phase-on: NEVER
370 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100371 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200372 current-parameters: false
373 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200374 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200375 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200376 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200377 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200378 INSTALLER_TYPE=$INSTALLER_TYPE
379 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200380 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200381 ONAP_VERSION=$ONAP_VERSION
382 ONAP_FLAVOR=full
383 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000384 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000385 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100386 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200387 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200388 ENGINE_VERSION=$ENGINE_VERSION
389 ENGINE_REFSPEC=$ENGINE_REFSPEC
390 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
391 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200392 XTESTING_REPO_URL=$XTESTING_REPO_URL
393 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
394 CLEANUP=$CLEANUP
395 node-parameters: true
396 kill-phase-on: NEVER
397 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100398 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
afennerda7ada62019-09-11 15:56:23 +0100399 current-parameters: false
400 predefined-parameters: |
401 SLAVE_LABEL=$SLAVE_LABEL
402 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200403 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
afennerda7ada62019-09-11 15:56:23 +0100404 PROVISIONER_TYPE=$PROVISIONER_TYPE
405 INSTALLER_TYPE=$INSTALLER_TYPE
406 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
407 DEPLOY_TYPE=$DEPLOY_TYPE
408 ONAP_VERSION=$ONAP_VERSION
409 ONAP_FLAVOR=healthdist
410 TEST_TYPE=onap-healthcheck
411 POD_NAME=$POD_NAME
412 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100413 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200414 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
afennerda7ada62019-09-11 15:56:23 +0100415 ENGINE_VERSION=$ENGINE_VERSION
416 ENGINE_REFSPEC=$ENGINE_REFSPEC
417 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
418 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
419 XTESTING_REPO_URL=$XTESTING_REPO_URL
420 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
421 CLEANUP=$CLEANUP
422 node-parameters: true
423 kill-phase-on: NEVER
424 abort-all-job: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200425 - multijob:
Fatih Degirmenci53d78f42019-07-30 17:47:57 +0200426 name: Promote ONAP (not activated)
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200427 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200428 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000429 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200430 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200431 predefined-parameters: |
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200432 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200433 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200434 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200435 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200436 INSTALLER_TYPE=$INSTALLER_TYPE
437 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
438 ONAP_VERSION=$ONAP_VERSION
439 ONAP_FLAVOR=$ONAP_FLAVOR
440 ENGINE_VERSION=$ENGINE_VERSION
441 ENGINE_REFSPEC=$ENGINE_REFSPEC
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000442 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000443 STACK_NAME=$STACK_NAME
Fatih Degirmenciecbb1ff2019-12-15 15:30:56 +0100444 KEYPAIR_NAME=$KEYPAIR_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200445 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200446 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
447 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
448 XTESTING_REPO_URL=$XTESTING_REPO_URL
449 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
450 CLEANUP=$CLEANUP
451 node-parameters: true
452 kill-phase-on: NEVER
453 abort-all-job: false
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +0000454
455 publishers:
456 - postbuildscript:
457 builders:
458 - role: SLAVE
459 build-on:
460 - SUCCESS
461 - FAILURE
462 - ABORTED
463 - NOT_BUILT
464 - UNSTABLE
465 build-steps:
466 - shell:
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000467 !include-raw-escape: ./wait-for-pkg-manager.sh
468 - shell:
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +0000469 !include-raw: ./delete-heat-stack.sh
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200470
471- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000472 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200473
474 disabled: false
475
476 concurrent: true
477
478 properties:
479 - logrotate
480
481 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200482 - project-parameters:
483 project: '{project}'
484 branch: '{nordix-branch}'
485 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200486 - onap-parameter-macro
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200487 - label:
488 name: SLAVE_LABEL
489 default: 'xerces-jumphost-onap-ubuntu1804'
490 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
491 - string:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200492 name: OPENSTACK_CLOUD_PROVIDER
493 default: 'city'
494 description: 'Name of the cloud where this job is run'
495 - string:
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200496 name: DISTRO
497 default: 'ubuntu1804'
498 description: 'Distribution to use for configuring target nodes (networking etc.)'
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200499 - string:
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000500 name: ONAP_FLAVOR
501 default: '{onap-flavor}'
502 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
503 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200504 name: ONAP_VERSION
505 default: '{onap-version}'
506 description: 'ONAP version to deploy'
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200507 - string:
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200508 name: HEAT_ENVIRONMENT_FILENAME
509 default: "heat-environment-full.yaml"
510 description: 'Type of the deployment'
511 - string:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200512 name: HEAT_ENVIRONMENT_FILE
Fatih Degirmencid559c292020-01-07 22:11:27 +0100513 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 +0200514 description: 'Type of the deployment'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200515
516 wrappers:
Fatih Degirmencia10efd12019-07-29 22:47:54 +0200517 - mask-passwords
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200518 - build-timeout:
519 timeout: '{build-timeout}'
520 - fix-workspace-permissions
Fatih Degirmencie57cd6a2019-10-22 09:56:35 +0200521 - credentials-binding:
522 - username-password-separated:
523 credential-id: 'nordix-cicd-arm-credentials'
524 username: NORDIX_ARM_USERNAME
525 password: NORDIX_ARM_TOKEN
526 - username-password-separated:
527 credential-id: 'nordix-cicd-harbor-credentials'
528 username: NORDIX_HARBOR_USERNAME
529 password: NORDIX_HARBOR_PASSWORD
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200530
531 scm:
532 - git-scm:
533 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
534 branch: '{nordix-branch}'
535 refspec: ''
536 wipe_workspace: true
537 clean_before: false
538
539 builders:
540 - description-setter:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200541 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200542 - '{onap-other-phases}-macro'
543
544- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000545 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200546
547 disabled: false
548
549 concurrent: true
550
551 properties:
552 - logrotate
553
554 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200555 - project-parameters:
556 project: '{project}'
557 branch: '{nordix-branch}'
558 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200559 - onap-parameter-macro
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200560 - label:
561 name: SLAVE_LABEL
562 default: 'xerces-jumphost-onap-ubuntu1804'
563 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
564 - string:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200565 name: OPENSTACK_CLOUD_PROVIDER
566 default: 'city'
567 description: 'Name of the cloud where this job is run'
568 - string:
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200569 name: DISTRO
570 default: 'ubuntu1804'
571 description: 'Distribution to use for configuring target nodes (networking etc.)'
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200572 - string:
573 name: ONAP_VERSION
574 default: '{onap-version}'
575 description: 'ONAP version to deploy'
576 - string:
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200577 name: HEAT_ENVIRONMENT_FILENAME
578 default: "heat-environment-full.yaml"
579 description: 'Type of the deployment'
580 - string:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200581 name: HEAT_ENVIRONMENT_FILE
Fatih Degirmenci108bf442020-01-08 10:28:24 +0100582 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 +0200583 description: 'Type of the deployment'
584 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200585 name: ENGINE_VERSION
586 default: '{engine-version}'
587 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
588 - string:
589 name: ENGINE_REFSPEC
590 default: '{engine-refspec}'
591 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
592 - string:
593 name: DEPLOY_SCENARIO_VERSION
594 default: '{deploy-scenario-version}'
595 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
596 - string:
597 name: DEPLOY_SCENARIO_REFSPEC
598 default: '{deploy-scenario-refspec}'
599 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 +0000600 - string:
601 name: POD_NAME
602 default: '{pod-name}'
603 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200604
605 wrappers:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200606 - mask-passwords
607 - build-timeout:
608 timeout: '{build-timeout}'
609 - fix-workspace-permissions
610
611 scm:
612 - git-scm:
613 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
614 branch: '{nordix-branch}'
615 refspec: ''
616 wipe_workspace: true
617 clean_before: false
618
619 builders:
620 - description-setter:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200621 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200622 - 'onap-healthcheck-macro'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200623
624# vim: set ts=2 sw=2 expandtab: