blob: 488dc81719fc8da33585f6b1c55dc580d9dffe6f [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
31 onap-branch:
32 - 'dublin':
33 nordix-branch: master
Fatih Degirmencida8abf72019-08-23 17:18:25 +000034 onap-version: dublin
Fatih Degirmenci9c661b62019-08-23 07:49:43 +000035 onap-flavor: full
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020036 engine-version: master
Fatih Degirmencicf34ca72019-08-20 11:26:50 +000037 engine-refspec: master
38 deploy-scenario-version: master
39 deploy-scenario-refspec: master
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020040 disabled: false
Fatih Degirmenciac529ac2019-07-29 22:20:41 +020041 - 'master':
42 nordix-branch: master
43 onap-version: master
Fatih Degirmenci9c661b62019-08-23 07:49:43 +000044 onap-flavor: full
Fatih Degirmenciac529ac2019-07-29 22:20:41 +020045 engine-version: master
46 engine-refspec: master
47 deploy-scenario-version: master
48 deploy-scenario-refspec: master
Fatih Degirmencibe8394d2019-08-21 06:14:29 +000049 disabled: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020050
51 distro:
Fatih Degirmencif3afb6d2019-07-29 22:27:40 +020052 - ubuntu1804
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020053
54 deploy-scenario:
Fatih Degirmenci3473f6f2019-08-22 17:37:34 +000055 - onap-nofeature-noha
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020056
Fatih Degirmencida8abf72019-08-23 17:18:25 +000057 ci-loop:
58 - daily
59
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020060 type:
61 - cloud:
Fatih Degirmenci714872e2019-08-24 11:16:38 +000062 pod-name: est-cloud
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020063 provisioner-type: heat
Fatih Degirmenciac529ac2019-07-29 22:20:41 +020064 installer-type: kubespray
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020065 slave-label: 'jumphost-onap-ubuntu1804'
66
Fatih Degirmencid6f228b2019-07-30 20:53:46 +020067 onap-other-phases:
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020068 - onap-deploy:
Fatih Degirmenci1a2d3cf2019-08-26 11:06:57 +000069 build-timeout: 210
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020070 - oom-healthcheck:
71 build-timeout: 30
Fatih Degirmenci0d464752019-07-30 12:14:02 +020072 test-type: oom-healthcheck
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020073 - promote-onap:
74 build-timeout: 5
75
Fatih Degirmencid6f228b2019-07-30 20:53:46 +020076 onap-healthcheck-phases:
77 - onap-healthcheck-core:
78 build-timeout: 30
79 test-type: onap-healthcheck
80 - onap-healthcheck-small:
81 build-timeout: 30
82 test-type: onap-healthcheck
83 - onap-healthcheck-medium:
84 build-timeout: 30
85 test-type: onap-healthcheck
86 - onap-healthcheck-full:
87 build-timeout: 30
88 test-type: onap-healthcheck
89
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020090 jobs:
Fatih Degirmencida8abf72019-08-23 17:18:25 +000091 - '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
92 - '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
93 - '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020094
95- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +000096 name: '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +020097
98 project-type: multijob
99
100 disabled: '{obj:disabled}'
101
102 concurrent: true
103
104 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200105 - project-parameters:
106 project: '{project}'
107 branch: '{nordix-branch}'
108 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200109 - onap-parameter-macro
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200110 - string:
111 name: ONAP_VERSION
112 default: '{onap-version}'
113 description: 'ONAP version to deploy'
114 - string:
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000115 name: ONAP_FLAVOR
116 default: '{onap-flavor}'
117 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
118 - string:
119 name: STACK_NAME
120 default: 'nordix-cicd-onap-{onap-branch}-{onap-flavor}'
121 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200122 name: ENGINE_VERSION
123 default: '{engine-version}'
124 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
125 - string:
126 name: ENGINE_REFSPEC
127 default: '{engine-refspec}'
128 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
129 - string:
130 name: DEPLOY_SCENARIO_VERSION
131 default: '{deploy-scenario-version}'
132 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
133 - string:
134 name: DEPLOY_SCENARIO_REFSPEC
135 default: '{deploy-scenario-refspec}'
136 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 +0000137 - string:
138 name: POD_NAME
139 default: '{pod-name}'
140 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
Fatih Degirmencid293bfa2019-08-26 13:30:14 +0000141 - choice:
142 name: DELETE_STACK
143 choices:
144 - 'yes'
145 - 'no'
146 default: 'yes'
147 description: 'Development purposes only! Whether delete the stack or not. Default is yes. Setting this to no will increase the cost!'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200148
149 properties:
150 - logrotate
151 - build-blocker:
152 use-build-blocker: true
153 blocking-jobs:
154 - 'cloud-infra-periodic-engine-.*'
155 - 'onap-.*'
156 - 'k8-.*'
157 block-level: 'NODE'
158 - throttle:
159 max-per-node: 1
160 max-total: 3
161 option: project
162
163 wrappers:
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000164 - credentials-binding:
165 - file:
Fatih Degirmencid293bfa2019-08-26 13:30:14 +0000166 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000167 variable: OPENRC_FILE
168 - mask-passwords
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200169 - build-timeout:
Fatih Degirmenci1a2d3cf2019-08-26 11:06:57 +0000170 timeout: 300
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200171 - fix-workspace-permissions
Fatih Degirmenciec9ae932019-08-20 11:41:50 +0000172 - openstack:
173 single-use: True
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200174
175 scm:
176 - git-scm:
177 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
178 branch: '{nordix-branch}'
179 refspec: ''
180 wipe_workspace: true
181 clean_before: false
182
183 builders:
184 - description-setter:
Fatih Degirmenci6e05fbf2019-08-25 13:48:37 +0000185 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
Fatih Degirmenciaf99e7e2019-08-22 21:29:02 +0000186 - shell: |
187 #!/bin/bash
188 cp $OPENRC_FILE /tmp/openrc
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200189 - multijob:
Fatih Degirmenci53d78f42019-07-30 17:47:57 +0200190 name: Deploy ONAP using OOM
Fatih Degirmenci9cc78442019-08-23 08:23:57 +0000191 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200192 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000193 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200194 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200195 predefined-parameters: |
196 DISTRO=$DISTRO
197 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200198 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200199 INSTALLER_TYPE=$INSTALLER_TYPE
200 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200201 ONAP_VERSION=$ONAP_VERSION
202 ONAP_FLAVOR=$ONAP_FLAVOR
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000203 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000204 STACK_NAME=$STACK_NAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200205 ENGINE_VERSION=$ENGINE_VERSION
206 ENGINE_REFSPEC=$ENGINE_REFSPEC
207 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
208 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
209 XTESTING_REPO_URL=$XTESTING_REPO_URL
210 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
211 CLEANUP=$CLEANUP
212 git-revision: true
213 node-parameters: true
Fatih Degirmenci9cc78442019-08-23 08:23:57 +0000214 kill-phase-on: NEVER
215 abort-all-job: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200216 - multijob:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200217 name: K8S and OOM Healthcheck using xtesting
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200218 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200219 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000220 - name: 'oom-healthcheck-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200221 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200222 predefined-parameters: |
223 DISTRO=$DISTRO
224 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200225 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200226 INSTALLER_TYPE=$INSTALLER_TYPE
227 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
228 ONAP_VERSION=$ONAP_VERSION
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200229 ONAP_FLAVOR=full
230 TEST_TYPE=oom-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000231 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000232 STACK_NAME=$STACK_NAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200233 ENGINE_VERSION=$ENGINE_VERSION
234 ENGINE_REFSPEC=$ENGINE_REFSPEC
235 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
236 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
237 XTESTING_REPO_URL=$XTESTING_REPO_URL
238 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
239 CLEANUP=$CLEANUP
240 node-parameters: true
241 kill-phase-on: NEVER
242 abort-all-job: false
243 - multijob:
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200244 name: ONAP Healthcheck using xtesting
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200245 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200246 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000247 - name: 'onap-healthcheck-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200248 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200249 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200250 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200251 DISTRO=$DISTRO
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200252 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200253 INSTALLER_TYPE=$INSTALLER_TYPE
254 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200255 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200256 ONAP_VERSION=$ONAP_VERSION
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200257 ONAP_FLAVOR=core
258 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000259 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000260 STACK_NAME=$STACK_NAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200261 ENGINE_VERSION=$ENGINE_VERSION
262 ENGINE_REFSPEC=$ENGINE_REFSPEC
263 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
264 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200265 XTESTING_REPO_URL=$XTESTING_REPO_URL
266 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
267 CLEANUP=$CLEANUP
268 node-parameters: true
269 kill-phase-on: NEVER
270 abort-all-job: false
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000271 - name: 'onap-healthcheck-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200272 current-parameters: false
273 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200274 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200275 DISTRO=$DISTRO
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200276 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200277 INSTALLER_TYPE=$INSTALLER_TYPE
278 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200279 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200280 ONAP_VERSION=$ONAP_VERSION
281 ONAP_FLAVOR=small
282 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000283 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000284 STACK_NAME=$STACK_NAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200285 ENGINE_VERSION=$ENGINE_VERSION
286 ENGINE_REFSPEC=$ENGINE_REFSPEC
287 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
288 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200289 XTESTING_REPO_URL=$XTESTING_REPO_URL
290 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
291 CLEANUP=$CLEANUP
292 node-parameters: true
293 kill-phase-on: NEVER
294 abort-all-job: false
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000295 - name: 'onap-healthcheck-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200296 current-parameters: false
297 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200298 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200299 DISTRO=$DISTRO
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200300 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200301 INSTALLER_TYPE=$INSTALLER_TYPE
302 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200303 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200304 ONAP_VERSION=$ONAP_VERSION
305 ONAP_FLAVOR=medium
306 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000307 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000308 STACK_NAME=$STACK_NAME
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200309 ENGINE_VERSION=$ENGINE_VERSION
310 ENGINE_REFSPEC=$ENGINE_REFSPEC
311 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
312 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200313 XTESTING_REPO_URL=$XTESTING_REPO_URL
314 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
315 CLEANUP=$CLEANUP
316 node-parameters: true
317 kill-phase-on: NEVER
318 abort-all-job: false
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000319 - name: 'onap-healthcheck-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200320 current-parameters: false
321 predefined-parameters: |
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200322 SLAVE_LABEL=$SLAVE_LABEL
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200323 DISTRO=$DISTRO
Fatih Degirmencic01b6d52019-07-30 13:51:09 +0200324 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200325 INSTALLER_TYPE=$INSTALLER_TYPE
326 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200327 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200328 ONAP_VERSION=$ONAP_VERSION
329 ONAP_FLAVOR=full
330 TEST_TYPE=onap-healthcheck
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000331 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000332 STACK_NAME=$STACK_NAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200333 ENGINE_VERSION=$ENGINE_VERSION
334 ENGINE_REFSPEC=$ENGINE_REFSPEC
335 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
336 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200337 XTESTING_REPO_URL=$XTESTING_REPO_URL
338 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
339 CLEANUP=$CLEANUP
340 node-parameters: true
341 kill-phase-on: NEVER
342 abort-all-job: false
343 - multijob:
Fatih Degirmenci53d78f42019-07-30 17:47:57 +0200344 name: Promote ONAP (not activated)
Fatih Degirmencic1a528c2019-07-30 12:24:36 +0200345 condition: ALWAYS
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200346 projects:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000347 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenci0d464752019-07-30 12:14:02 +0200348 current-parameters: false
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200349 predefined-parameters: |
350 DISTRO=$DISTRO
351 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200352 INSTALLER_TYPE=$INSTALLER_TYPE
353 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
354 ONAP_VERSION=$ONAP_VERSION
355 ONAP_FLAVOR=$ONAP_FLAVOR
356 ENGINE_VERSION=$ENGINE_VERSION
357 ENGINE_REFSPEC=$ENGINE_REFSPEC
Fatih Degirmenci714872e2019-08-24 11:16:38 +0000358 POD_NAME=$POD_NAME
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000359 STACK_NAME=$STACK_NAME
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200360 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
361 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
362 XTESTING_REPO_URL=$XTESTING_REPO_URL
363 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
364 CLEANUP=$CLEANUP
365 node-parameters: true
366 kill-phase-on: NEVER
367 abort-all-job: false
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +0000368
369 publishers:
370 - postbuildscript:
371 builders:
372 - role: SLAVE
373 build-on:
374 - SUCCESS
375 - FAILURE
376 - ABORTED
377 - NOT_BUILT
378 - UNSTABLE
379 build-steps:
380 - shell:
Fatih Degirmenci395f17a2019-08-22 21:09:59 +0000381 !include-raw-escape: ./wait-for-pkg-manager.sh
382 - shell:
Fatih Degirmenci9ff44df2019-08-22 20:17:30 +0000383 !include-raw: ./delete-heat-stack.sh
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200384
385- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000386 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200387
388 disabled: false
389
390 concurrent: true
391
392 properties:
393 - logrotate
394
395 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200396 - project-parameters:
397 project: '{project}'
398 branch: '{nordix-branch}'
399 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200400 - onap-parameter-macro
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200401 - string:
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000402 name: ONAP_FLAVOR
403 default: '{onap-flavor}'
404 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
405 - string:
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200406 name: ONAP_VERSION
407 default: '{onap-version}'
408 description: 'ONAP version to deploy'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200409
410 wrappers:
Fatih Degirmencia10efd12019-07-29 22:47:54 +0200411 - credentials-binding:
Fatih Degirmenci89f21802019-07-29 22:54:56 +0200412 - file:
Fatih Degirmencid293bfa2019-08-26 13:30:14 +0000413 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
Fatih Degirmencia10efd12019-07-29 22:47:54 +0200414 variable: OPENRC_FILE
415 - mask-passwords
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200416 - build-timeout:
417 timeout: '{build-timeout}'
418 - fix-workspace-permissions
419
420 scm:
421 - git-scm:
422 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
423 branch: '{nordix-branch}'
424 refspec: ''
425 wipe_workspace: true
426 clean_before: false
427
428 builders:
429 - description-setter:
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000430 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200431 - '{onap-other-phases}-macro'
432
433- job-template:
Fatih Degirmencida8abf72019-08-23 17:18:25 +0000434 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200435
436 disabled: false
437
438 concurrent: true
439
440 properties:
441 - logrotate
442
443 parameters:
Fatih Degirmencia21f59a2019-07-30 21:14:41 +0200444 - project-parameters:
445 project: '{project}'
446 branch: '{nordix-branch}'
447 - nordix-gerrit-parameters
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200448 - onap-parameter-macro
Fatih Degirmenciaca27a62019-07-30 21:10:32 +0200449 - string:
450 name: ONAP_VERSION
451 default: '{onap-version}'
452 description: 'ONAP version to deploy'
453 - string:
454 name: ENGINE_VERSION
455 default: '{engine-version}'
456 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
457 - string:
458 name: ENGINE_REFSPEC
459 default: '{engine-refspec}'
460 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
461 - string:
462 name: DEPLOY_SCENARIO_VERSION
463 default: '{deploy-scenario-version}'
464 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
465 - string:
466 name: DEPLOY_SCENARIO_REFSPEC
467 default: '{deploy-scenario-refspec}'
468 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 +0000469 - string:
470 name: POD_NAME
471 default: '{pod-name}'
472 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200473
474 wrappers:
475 - credentials-binding:
476 - file:
Fatih Degirmencid293bfa2019-08-26 13:30:14 +0000477 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200478 variable: OPENRC_FILE
479 - mask-passwords
480 - build-timeout:
481 timeout: '{build-timeout}'
482 - fix-workspace-permissions
483
484 scm:
485 - git-scm:
486 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
487 branch: '{nordix-branch}'
488 refspec: ''
489 wipe_workspace: true
490 clean_before: false
491
492 builders:
493 - description-setter:
Fatih Degirmenci9c661b62019-08-23 07:49:43 +0000494 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
Fatih Degirmencid6f228b2019-07-30 20:53:46 +0200495 - 'onap-healthcheck-macro'
Fatih Degirmenciaadea7b2019-07-29 21:19:42 +0200496
497# vim: set ts=2 sw=2 expandtab: