blob: ebe4796af06de4d46a74da43c9a1a1d371c3c9de [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 Degirmencif91eae92019-10-21 08:13:56 +020035 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:
42 - 'dublin':
43 nordix-branch: master
Fatih Degirmencida8abf72019-08-23 17:18:25 +000044 onap-version: dublin
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 Degirmenci785e5ac2019-08-29 08:36:30 +000063 delete-stack: 'no'
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:
84 build-timeout: 5
85
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 Degirmenci6c7ccc32019-10-16 19:50:06 +0200147 name: HEAT_ENVIRONMENT_FILENAME
148 default: "heat-environment-{cloud}-{distro}-full.yaml"
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200149 description: 'Type of the deployment'
150 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200151 name: ENGINE_VERSION
152 default: '{engine-version}'
153 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
154 - string:
155 name: ENGINE_REFSPEC
156 default: '{engine-refspec}'
157 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
158 - string:
159 name: DEPLOY_SCENARIO_VERSION
160 default: '{deploy-scenario-version}'
161 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
162 - string:
163 name: DEPLOY_SCENARIO_REFSPEC
164 default: '{deploy-scenario-refspec}'
165 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 +0000166 - string:
167 name: POD_NAME
168 default: '{pod-name}'
169 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
Fatih Degirmenci7ad71132019-08-29 07:57:41 +0000170 - string:
Fatih Degirmencid293bfa2019-08-26 13:30:14 +0000171 name: DELETE_STACK
Fatih Degirmenci42a44982019-08-29 07:46:40 +0000172 default: '{delete-stack}'
Fatih Degirmenci7ad71132019-08-29 07:57:41 +0000173 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 +0200174
175 properties:
176 - logrotate
177 - build-blocker:
178 use-build-blocker: true
179 blocking-jobs:
180 - 'cloud-infra-periodic-engine-.*'
181 - 'onap-.*'
182 - 'k8-.*'
183 block-level: 'NODE'
184 - throttle:
185 max-per-node: 1
Fatih Degirmencid89b9f72019-10-18 16:28:56 +0200186 max-total: 1
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200187 option: project
188
189 wrappers:
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000190 - credentials-binding:
191 - file:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200192 credential-id: '{openrc-credentials-file}'
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000193 variable: OPENRC_FILE
194 - mask-passwords
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200195 - build-timeout:
Fatih Degirmenci1a2d3cf2019-08-26 11:06:57 +0000196 timeout: 300
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200197 - fix-workspace-permissions
Fatih Degirmenciec9ae932019-08-20 11:41:50 +0000198 - openstack:
199 single-use: True
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200200
Fatih Degirmenci42a44982019-08-29 07:46:40 +0000201 triggers:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200202 - timed: '{daily-trigger}'
Fatih Degirmenci42a44982019-08-29 07:46:40 +0000203
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200204 scm:
205 - git-scm:
206 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
207 branch: '{nordix-branch}'
208 refspec: ''
209 wipe_workspace: true
210 clean_before: false
211
212 builders:
213 - description-setter:
Fatih Degirmenci6e05fbf2019-08-25 13:48:37 +0000214 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
Fatih Degirmenciaf99e7e2019-08-22 21:29:02 +0000215 - shell: |
216 #!/bin/bash
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200217 /bin/rm -rf /tmp/openrc && /bin/cp -f $OPENRC_FILE /tmp/openrc
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200218 - multijob:
Fatih Degirmenci53d78f42019-07-30 17:47:57 +0200219 name: Deploy ONAP using OOM
Fatih Degirmenci9cc78442019-08-23 08:23:57 +0000220 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200221 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000222 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200223 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200224 predefined-parameters: |
225 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200226 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200227 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200228 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200229 INSTALLER_TYPE=$INSTALLER_TYPE
230 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200231 ONAP_VERSION=$ONAP_VERSION
232 ONAP_FLAVOR=$ONAP_FLAVOR
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000233 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000234 STACK_NAME=$STACK_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200235 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200236 ENGINE_VERSION=$ENGINE_VERSION
237 ENGINE_REFSPEC=$ENGINE_REFSPEC
238 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
239 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
240 XTESTING_REPO_URL=$XTESTING_REPO_URL
241 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
242 CLEANUP=$CLEANUP
243 git-revision: true
244 node-parameters: true
Fatih Degirmenci9cc78442019-08-23 08:23:57 +0000245 kill-phase-on: NEVER
246 abort-all-job: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200247 - multijob:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200248 name: K8S and OOM Healthcheck using xtesting
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200249 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200250 projects:
afennerbbdc8342019-09-18 14:59:52 +0100251 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200252 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200253 predefined-parameters: |
254 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200255 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200256 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200257 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200258 INSTALLER_TYPE=$INSTALLER_TYPE
259 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
260 ONAP_VERSION=$ONAP_VERSION
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200261 ONAP_FLAVOR=full
262 TEST_TYPE=oom-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000263 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000264 STACK_NAME=$STACK_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200265 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200266 ENGINE_VERSION=$ENGINE_VERSION
267 ENGINE_REFSPEC=$ENGINE_REFSPEC
268 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
269 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
270 XTESTING_REPO_URL=$XTESTING_REPO_URL
271 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
272 CLEANUP=$CLEANUP
273 node-parameters: true
274 kill-phase-on: NEVER
275 abort-all-job: false
276 - multijob:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200277 name: ONAP Healthcheck using xtesting
Fatih Degirmencicfc06002019-10-03 11:26:59 +0200278 execution-type: SEQUENTIALLY
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200279 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200280 projects:
afennerbbdc8342019-09-18 14:59:52 +0100281 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200282 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200283 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200284 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200285 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200286 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200287 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200288 INSTALLER_TYPE=$INSTALLER_TYPE
289 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200290 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200291 ONAP_VERSION=$ONAP_VERSION
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200292 ONAP_FLAVOR=core
293 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000294 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000295 STACK_NAME=$STACK_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200296 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200297 ENGINE_VERSION=$ENGINE_VERSION
298 ENGINE_REFSPEC=$ENGINE_REFSPEC
299 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
300 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200301 XTESTING_REPO_URL=$XTESTING_REPO_URL
302 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
303 CLEANUP=$CLEANUP
304 node-parameters: true
305 kill-phase-on: NEVER
306 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100307 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200308 current-parameters: false
309 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200310 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200311 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200312 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200313 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200314 INSTALLER_TYPE=$INSTALLER_TYPE
315 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200316 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200317 ONAP_VERSION=$ONAP_VERSION
318 ONAP_FLAVOR=small
319 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000320 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000321 STACK_NAME=$STACK_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200322 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200323 ENGINE_VERSION=$ENGINE_VERSION
324 ENGINE_REFSPEC=$ENGINE_REFSPEC
325 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
326 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200327 XTESTING_REPO_URL=$XTESTING_REPO_URL
328 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
329 CLEANUP=$CLEANUP
330 node-parameters: true
331 kill-phase-on: NEVER
332 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100333 - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200334 current-parameters: false
335 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200336 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200337 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200338 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200339 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200340 INSTALLER_TYPE=$INSTALLER_TYPE
341 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200342 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200343 ONAP_VERSION=$ONAP_VERSION
344 ONAP_FLAVOR=medium
345 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000346 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000347 STACK_NAME=$STACK_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200348 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200349 ENGINE_VERSION=$ENGINE_VERSION
350 ENGINE_REFSPEC=$ENGINE_REFSPEC
351 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
352 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200353 XTESTING_REPO_URL=$XTESTING_REPO_URL
354 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
355 CLEANUP=$CLEANUP
356 node-parameters: true
357 kill-phase-on: NEVER
358 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100359 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200360 current-parameters: false
361 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200362 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200363 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200364 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200365 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200366 INSTALLER_TYPE=$INSTALLER_TYPE
367 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200368 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200369 ONAP_VERSION=$ONAP_VERSION
370 ONAP_FLAVOR=full
371 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000372 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000373 STACK_NAME=$STACK_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200374 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200375 ENGINE_VERSION=$ENGINE_VERSION
376 ENGINE_REFSPEC=$ENGINE_REFSPEC
377 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
378 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200379 XTESTING_REPO_URL=$XTESTING_REPO_URL
380 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
381 CLEANUP=$CLEANUP
382 node-parameters: true
383 kill-phase-on: NEVER
384 abort-all-job: false
afennerbbdc8342019-09-18 14:59:52 +0100385 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
afennerda7ada62019-09-11 15:56:23 +0100386 current-parameters: false
387 predefined-parameters: |
388 SLAVE_LABEL=$SLAVE_LABEL
389 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200390 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
afennerda7ada62019-09-11 15:56:23 +0100391 PROVISIONER_TYPE=$PROVISIONER_TYPE
392 INSTALLER_TYPE=$INSTALLER_TYPE
393 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
394 DEPLOY_TYPE=$DEPLOY_TYPE
395 ONAP_VERSION=$ONAP_VERSION
396 ONAP_FLAVOR=healthdist
397 TEST_TYPE=onap-healthcheck
398 POD_NAME=$POD_NAME
399 STACK_NAME=$STACK_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200400 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
afennerda7ada62019-09-11 15:56:23 +0100401 ENGINE_VERSION=$ENGINE_VERSION
402 ENGINE_REFSPEC=$ENGINE_REFSPEC
403 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
404 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
405 XTESTING_REPO_URL=$XTESTING_REPO_URL
406 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
407 CLEANUP=$CLEANUP
408 node-parameters: true
409 kill-phase-on: NEVER
410 abort-all-job: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200411 - multijob:
Fatih Degirmenci53d78f42019-07-30 17:47:57 +0200412 name: Promote ONAP (not activated)
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200413 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200414 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000415 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200416 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200417 predefined-parameters: |
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200418 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200419 DISTRO=$DISTRO
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200420 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200421 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200422 INSTALLER_TYPE=$INSTALLER_TYPE
423 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
424 ONAP_VERSION=$ONAP_VERSION
425 ONAP_FLAVOR=$ONAP_FLAVOR
426 ENGINE_VERSION=$ENGINE_VERSION
427 ENGINE_REFSPEC=$ENGINE_REFSPEC
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000428 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000429 STACK_NAME=$STACK_NAME
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200430 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200431 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
432 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
433 XTESTING_REPO_URL=$XTESTING_REPO_URL
434 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
435 CLEANUP=$CLEANUP
436 node-parameters: true
437 kill-phase-on: NEVER
438 abort-all-job: false
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +0000439
440 publishers:
441 - postbuildscript:
442 builders:
443 - role: SLAVE
444 build-on:
445 - SUCCESS
446 - FAILURE
447 - ABORTED
448 - NOT_BUILT
449 - UNSTABLE
450 build-steps:
451 - shell:
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000452 !include-raw-escape: ./wait-for-pkg-manager.sh
453 - shell:
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +0000454 !include-raw: ./delete-heat-stack.sh
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200455
456- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000457 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200458
459 disabled: false
460
461 concurrent: true
462
463 properties:
464 - logrotate
465
466 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200467 - project-parameters:
468 project: '{project}'
469 branch: '{nordix-branch}'
470 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200471 - onap-parameter-macro
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200472 - label:
473 name: SLAVE_LABEL
474 default: 'xerces-jumphost-onap-ubuntu1804'
475 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
476 - string:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200477 name: OPENSTACK_CLOUD_PROVIDER
478 default: 'city'
479 description: 'Name of the cloud where this job is run'
480 - string:
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200481 name: DISTRO
482 default: 'ubuntu1804'
483 description: 'Distribution to use for configuring target nodes (networking etc.)'
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200484 - string:
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000485 name: ONAP_FLAVOR
486 default: '{onap-flavor}'
487 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
488 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200489 name: ONAP_VERSION
490 default: '{onap-version}'
491 description: 'ONAP version to deploy'
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200492 - string:
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200493 name: HEAT_ENVIRONMENT_FILENAME
494 default: "heat-environment-full.yaml"
495 description: 'Type of the deployment'
496 - string:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200497 name: HEAT_ENVIRONMENT_FILE
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200498 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200499 description: 'Type of the deployment'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200500
501 wrappers:
Fatih Degirmencia10efd12019-07-29 22:47:54 +0200502 - mask-passwords
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200503 - build-timeout:
504 timeout: '{build-timeout}'
505 - fix-workspace-permissions
Fatih Degirmencie57cd6a2019-10-22 09:56:35 +0200506 - credentials-binding:
507 - username-password-separated:
508 credential-id: 'nordix-cicd-arm-credentials'
509 username: NORDIX_ARM_USERNAME
510 password: NORDIX_ARM_TOKEN
511 - username-password-separated:
512 credential-id: 'nordix-cicd-harbor-credentials'
513 username: NORDIX_HARBOR_USERNAME
514 password: NORDIX_HARBOR_PASSWORD
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200515
516 scm:
517 - git-scm:
518 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
519 branch: '{nordix-branch}'
520 refspec: ''
521 wipe_workspace: true
522 clean_before: false
523
524 builders:
525 - description-setter:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200526 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200527 - '{onap-other-phases}-macro'
528
529- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000530 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200531
532 disabled: false
533
534 concurrent: true
535
536 properties:
537 - logrotate
538
539 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200540 - project-parameters:
541 project: '{project}'
542 branch: '{nordix-branch}'
543 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200544 - onap-parameter-macro
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200545 - label:
546 name: SLAVE_LABEL
547 default: 'xerces-jumphost-onap-ubuntu1804'
548 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
549 - string:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200550 name: OPENSTACK_CLOUD_PROVIDER
551 default: 'city'
552 description: 'Name of the cloud where this job is run'
553 - string:
Fatih Degirmenciebfb38b2019-10-16 19:28:19 +0200554 name: DISTRO
555 default: 'ubuntu1804'
556 description: 'Distribution to use for configuring target nodes (networking etc.)'
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200557 - string:
558 name: ONAP_VERSION
559 default: '{onap-version}'
560 description: 'ONAP version to deploy'
561 - string:
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200562 name: HEAT_ENVIRONMENT_FILENAME
563 default: "heat-environment-full.yaml"
564 description: 'Type of the deployment'
565 - string:
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200566 name: HEAT_ENVIRONMENT_FILE
Fatih Degirmenci6c7ccc32019-10-16 19:50:06 +0200567 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
Fatih Degirmenci76c4bd92019-10-15 19:42:20 +0200568 description: 'Type of the deployment'
569 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200570 name: ENGINE_VERSION
571 default: '{engine-version}'
572 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
573 - string:
574 name: ENGINE_REFSPEC
575 default: '{engine-refspec}'
576 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
577 - string:
578 name: DEPLOY_SCENARIO_VERSION
579 default: '{deploy-scenario-version}'
580 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
581 - string:
582 name: DEPLOY_SCENARIO_REFSPEC
583 default: '{deploy-scenario-refspec}'
584 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 +0000585 - string:
586 name: POD_NAME
587 default: '{pod-name}'
588 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200589
590 wrappers:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200591 - mask-passwords
592 - build-timeout:
593 timeout: '{build-timeout}'
594 - fix-workspace-permissions
595
596 scm:
597 - git-scm:
598 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
599 branch: '{nordix-branch}'
600 refspec: ''
601 wipe_workspace: true
602 clean_before: false
603
604 builders:
605 - description-setter:
Fatih Degirmenci96a19742019-10-16 20:25:24 +0200606 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200607 - 'onap-healthcheck-macro'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200608
609# vim: set ts=2 sw=2 expandtab: