Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 1 | --- |
| 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 | #-------------------------------------------------------------------------------------- |
| 22 | # The jobs declared in this JJB configuration file are used for verifying cloud-infra |
| 23 | # engine from the tip of the master branch periodically to check the stability of it. |
| 24 | # |
| 25 | # These jobs are set to run on slaves with label vpod-deploy-ubuntu1604. |
| 26 | # The slaves have |
| 27 | # - Ubuntu1604 as the base distro |
| 28 | # - nested virtualization |
| 29 | # - internet access |
| 30 | # - passwordless sudo |
| 31 | # - 16 CPUs/32GB RAM/200 GB Disk |
| 32 | # - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl |
| 33 | # gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre |
| 34 | # |
| 35 | # The slaves should not have a cloud infra scenario deployed on them. |
| 36 | #-------------------------------------------------------------------------------------- |
| 37 | |
| 38 | - project: |
| 39 | name: 'cloud-infra-periodic-scenario' |
| 40 | |
| 41 | project: 'infra/engine' |
| 42 | |
| 43 | stream: |
| 44 | - 'master': |
| 45 | branch: '{stream}' |
| 46 | disabled: 'false' |
| 47 | |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 48 | distro: |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 49 | - ubuntu1804: |
| 50 | disabled: 'false' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 51 | - centos7: |
| 52 | disabled: 'true' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 53 | |
| 54 | deploy-scenario: |
| 55 | - k8-calico-nofeature: |
| 56 | installer-type: kubespray |
| 57 | - k8-flannel-nofeature: |
| 58 | installer-type: kubespray |
| 59 | - k8-canal-nofeature: |
| 60 | installer-type: kubespray |
| 61 | - k8-cilium-nofeature: |
| 62 | installer-type: kubespray |
| 63 | - k8-weave-nofeature: |
| 64 | installer-type: kubespray |
Fatih Degirmenci | b5d8197 | 2019-05-08 18:12:42 +0200 | [diff] [blame] | 65 | - k8-multus-nofeature: |
| 66 | installer-type: kubespray |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 67 | |
| 68 | type: |
| 69 | - baremetal: |
| 70 | slave-label: 'baremetal-deploy' |
| 71 | yardstick-dispatcher: 'influxdb' |
| 72 | |
| 73 | phase: |
| 74 | - deploy: |
| 75 | build-timeout: 60 |
| 76 | - functest: |
| 77 | build-timeout: 120 |
| 78 | - yardstick: |
| 79 | build-timeout: 30 |
| 80 | - promote: |
| 81 | build-timeout: 5 |
| 82 | |
| 83 | jobs: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 84 | - '{deploy-scenario}-periodic-{distro}-{type}-{stream}' |
| 85 | - 'scenario-periodic-{distro}-{phase}-{type}-{stream}' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 86 | |
| 87 | - job-template: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 88 | name: '{deploy-scenario}-periodic-{distro}-{type}-{stream}' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 89 | |
| 90 | project-type: multijob |
| 91 | |
| 92 | disabled: '{obj:disabled}' |
| 93 | |
| 94 | concurrent: true |
| 95 | |
| 96 | parameters: |
| 97 | - project-parameters: |
| 98 | project: '{project}' |
| 99 | branch: '{branch}' |
| 100 | - nordix-gerrit-parameters |
| 101 | - label: |
| 102 | name: SLAVE_LABEL |
| 103 | default: '{slave-label}' |
| 104 | description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use' |
| 105 | - string: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 106 | name: DISTRO |
| 107 | default: '{distro}' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 108 | description: 'Distribution to use for configuring target nodes (networking etc.)' |
| 109 | - string: |
| 110 | name: DEPLOY_TYPE |
| 111 | default: '{type}' |
| 112 | description: 'Type of the deployment' |
| 113 | - string: |
| 114 | name: USE_PREBUILT_DEPLOYMENT_IMAGE |
| 115 | default: 'true' |
| 116 | description: 'Use prebuilt deployment image while running as part of CI/CD' |
| 117 | - string: |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 118 | name: INSTALLER_TYPE |
| 119 | default: '{installer-type}' |
| 120 | description: 'Installer to use for deploying the scenario' |
| 121 | - string: |
| 122 | name: DEPLOY_SCENARIO |
| 123 | default: '{deploy-scenario}' |
| 124 | description: 'Scenario to deploy and test' |
| 125 | - string: |
| 126 | name: TEST_SUITE |
| 127 | default: 'smoke' |
| 128 | description: 'Test suite to run' |
| 129 | - string: |
| 130 | name: YARDSTICK_DISPATCHER |
| 131 | default: '{yardstick-dispatcher}' |
| 132 | description: 'Dispatcher to use for Yardstick reporting' |
| 133 | - string: |
| 134 | name: CLEANUP |
| 135 | default: 'true' |
| 136 | description: 'Cleanup leftovers of the previous run' |
| 137 | |
| 138 | properties: |
| 139 | - logrotate |
| 140 | - build-blocker: |
| 141 | use-build-blocker: true |
| 142 | blocking-jobs: |
Fatih Degirmenci | 175d55d | 2019-05-09 15:21:22 +0200 | [diff] [blame] | 143 | - 'cloud-infra-periodic-engine-.*' |
| 144 | - 'k8-.*' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 145 | block-level: 'NODE' |
| 146 | - throttle: |
| 147 | max-per-node: 1 |
| 148 | max-total: 3 |
| 149 | option: project |
| 150 | |
| 151 | wrappers: |
| 152 | - build-timeout: |
| 153 | timeout: 210 |
| 154 | - fix-workspace-permissions |
| 155 | |
| 156 | scm: |
| 157 | - git-scm: |
| 158 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 159 | branch: '{branch}' |
| 160 | refspec: '' |
robert.tomczyk | 7e50787 | 2019-06-18 17:20:26 +0100 | [diff] [blame] | 161 | wipe_workspace: true |
| 162 | clean_before: false |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 163 | |
| 164 | triggers: |
| 165 | - timed: '@daily' |
| 166 | |
| 167 | builders: |
| 168 | - description-setter: |
| 169 | description: $INSTALLER_TYPE |
| 170 | - multijob: |
| 171 | name: deploy |
| 172 | condition: SUCCESSFUL |
| 173 | projects: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 174 | - name: 'scenario-periodic-{distro}-deploy-{type}-{stream}' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 175 | current-parameters: true |
| 176 | predefined-parameters: | |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 177 | DISTRO=$DISTRO |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 178 | DEPLOY_TYPE=$DEPLOY_TYPE |
| 179 | USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 180 | INSTALLER_TYPE=$INSTALLER_TYPE |
| 181 | DEPLOY_SCENARIO=$DEPLOY_SCENARIO |
| 182 | CLEANUP=$CLEANUP |
| 183 | git-revision: true |
| 184 | node-parameters: true |
| 185 | kill-phase-on: FAILURE |
| 186 | abort-all-job: true |
| 187 | - multijob: |
| 188 | name: functest |
Fatih Degirmenci | a94ea54 | 2019-05-08 22:00:36 +0200 | [diff] [blame] | 189 | condition: SUCCESSFUL |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 190 | projects: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 191 | - name: 'scenario-periodic-{distro}-functest-{type}-{stream}' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 192 | current-parameters: true |
| 193 | predefined-parameters: | |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 194 | DISTRO=$DISTRO |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 195 | DEPLOY_TYPE=$DEPLOY_TYPE |
| 196 | INSTALLER_TYPE=$INSTALLER_TYPE |
| 197 | DEPLOY_SCENARIO=$DEPLOY_SCENARIO |
| 198 | TEST_SUITE=$TEST_SUITE |
| 199 | YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER |
| 200 | CLEANUP=$CLEANUP |
| 201 | node-parameters: true |
| 202 | kill-phase-on: FAILURE |
| 203 | abort-all-job: true |
| 204 | - multijob: |
| 205 | name: yardstick |
Fatih Degirmenci | a94ea54 | 2019-05-08 22:00:36 +0200 | [diff] [blame] | 206 | condition: SUCCESSFUL |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 207 | projects: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 208 | - name: 'scenario-periodic-{distro}-yardstick-{type}-{stream}' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 209 | current-parameters: true |
| 210 | predefined-parameters: | |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 211 | DISTRO=$DISTRO |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 212 | DEPLOY_TYPE=$DEPLOY_TYPE |
| 213 | INSTALLER_TYPE=$INSTALLER_TYPE |
| 214 | DEPLOY_SCENARIO=$DEPLOY_SCENARIO |
| 215 | TEST_SUITE=$TEST_SUITE |
| 216 | YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER |
| 217 | CLEANUP=$CLEANUP |
| 218 | node-parameters: true |
| 219 | kill-phase-on: FAILURE |
| 220 | abort-all-job: true |
| 221 | - multijob: |
| 222 | name: promote |
Fatih Degirmenci | a94ea54 | 2019-05-08 22:00:36 +0200 | [diff] [blame] | 223 | condition: SUCCESSFUL |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 224 | projects: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 225 | - name: 'scenario-periodic-{distro}-promote-{type}-{stream}' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 226 | current-parameters: true |
| 227 | predefined-parameters: | |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 228 | DISTRO=$DISTRO |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 229 | DEPLOY_TYPE=$DEPLOY_TYPE |
| 230 | INSTALLER_TYPE=$INSTALLER_TYPE |
| 231 | DEPLOY_SCENARIO=$DEPLOY_SCENARIO |
| 232 | TEST_SUITE=$TEST_SUITE |
| 233 | YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER |
| 234 | CLEANUP=$CLEANUP |
| 235 | node-parameters: true |
| 236 | kill-phase-on: FAILURE |
| 237 | abort-all-job: true |
| 238 | |
| 239 | - job-template: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 240 | name: 'scenario-periodic-{distro}-{phase}-{type}-{stream}' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 241 | |
| 242 | disabled: false |
| 243 | |
| 244 | concurrent: true |
| 245 | |
| 246 | properties: |
| 247 | - logrotate |
| 248 | |
| 249 | parameters: |
| 250 | - string: |
| 251 | name: PROJECT |
| 252 | default: $GERRIT_PROJECT |
| 253 | - string: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 254 | name: DISTRO |
| 255 | default: 'ubuntu1804' |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 256 | description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.' |
| 257 | - string: |
| 258 | name: DEPLOY_TYPE |
| 259 | default: 'virtual' |
| 260 | description: 'Type of the deployment. Overriden by upstream job.' |
| 261 | - string: |
| 262 | name: USE_PREBUILT_DEPLOYMENT_IMAGE |
| 263 | default: 'false' |
| 264 | description: 'Use prebuilt deployment image while running as part of CI/CD' |
| 265 | - string: |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 266 | name: ENGINE_ANSIBLE_PARAMS |
| 267 | default: ' -v ' |
| 268 | description: 'Extra paramters that can be added when run the play books.' |
| 269 | - string: |
| 270 | name: DEPLOY_SCENARIO |
| 271 | default: 'k8-calico-nofeature' |
| 272 | description: 'Scenario to deploy and test' |
| 273 | - string: |
| 274 | name: INSTALLER_TYPE |
| 275 | default: 'kubespray' |
| 276 | description: 'Installer to use for deploying the scenario' |
| 277 | - string: |
| 278 | name: TEST_FW |
| 279 | default: '{phase}' |
| 280 | description: 'Test framework to use' |
| 281 | - string: |
| 282 | name: TEST_SUITE |
| 283 | default: 'smoke' |
| 284 | description: 'Test suite to run' |
| 285 | - string: |
| 286 | name: TEST_REPO_URL |
| 287 | default: 'https://gerrit.nordix.org/infra/test.git' |
| 288 | description: 'URL to Nordix Cloud Infra test repository' |
| 289 | - string: |
| 290 | name: YARDSTICK_DISPATCHER |
| 291 | default: 'file' |
| 292 | description: 'Dispatcher to use for Yardstick reporting' |
| 293 | - string: |
| 294 | name: CLEANUP |
| 295 | default: 'false' |
| 296 | |
| 297 | wrappers: |
| 298 | - build-timeout: |
| 299 | timeout: '{build-timeout}' |
| 300 | - fix-workspace-permissions |
| 301 | |
| 302 | scm: |
| 303 | - git-scm: |
| 304 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 305 | branch: '{branch}' |
| 306 | refspec: '' |
robert.tomczyk | 7e50787 | 2019-06-18 17:20:26 +0100 | [diff] [blame] | 307 | wipe_workspace: true |
| 308 | clean_before: false |
Fatih Degirmenci | e504a2d | 2019-05-08 11:38:56 +0200 | [diff] [blame] | 309 | |
| 310 | builders: |
| 311 | - description-setter: |
| 312 | description: $INSTALLER_TYPE - $DEPLOY_SCENARIO |
| 313 | - 'scenario-{phase}-macro' |
| 314 | |
| 315 | # vim: set ts=2 sw=2 expandtab: |