Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [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 patches |
| 23 | # that are sent to the repositories below |
| 24 | # - cloud-infra/test |
| 25 | # |
| 26 | # These jobs verify changes that |
| 27 | # - implement new features or fix bugs to the playbooks and roles used for utilizing |
| 28 | # open source test frameworks such as opnfv/functest and opnfv/yardstick |
| 29 | # - bump versions of the open source test frameworks |
| 30 | # |
| 31 | # These jobs are set to run on slaves with label vpod-test-ubuntu1604. |
| 32 | # The slaves have |
| 33 | # - Ubuntu1604 as the base distro |
| 34 | # - nested virtualization |
| 35 | # - internet access |
| 36 | # - passwordless sudo |
| 37 | # - 16 CPUs/32GB RAM/200 GB Disk |
| 38 | # - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl |
| 39 | # gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre |
| 40 | # |
| 41 | # The slaves should have a promoted version of a cloud infra scenario deployed on them. |
| 42 | # Currently k8-calico-nofeature scenario is deployed on the slaves. |
| 43 | #-------------------------------------------------------------------------------------- |
| 44 | |
| 45 | - project: |
| 46 | name: 'cloud-infra-verify-test' |
| 47 | |
| 48 | project: 'infra/test' |
| 49 | |
| 50 | stream: |
| 51 | - 'master': |
| 52 | branch: '{stream}' |
| 53 | disabled: 'false' |
| 54 | |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 55 | distro: |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 56 | - ubuntu1804: |
| 57 | disabled: 'false' |
Fatih Degirmenci | e28fcbf | 2019-07-17 11:19:11 +0200 | [diff] [blame] | 58 | slave-label: vpod-test-ubuntu1804 |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 59 | |
| 60 | type: |
| 61 | - virtual |
| 62 | |
| 63 | phase: |
| 64 | - functest |
| 65 | - yardstick |
| 66 | |
| 67 | jobs: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 68 | - 'cloud-infra-verify-testfw-{distro}-{type}-{stream}' |
| 69 | - 'cloud-infra-verify-testfw-{distro}-{phase}-{type}-{stream}' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 70 | |
| 71 | - job-template: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 72 | name: 'cloud-infra-verify-testfw-{distro}-{type}-{stream}' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 73 | |
| 74 | project-type: multijob |
| 75 | |
| 76 | disabled: '{obj:disabled}' |
| 77 | |
| 78 | concurrent: true |
| 79 | |
| 80 | parameters: |
| 81 | - project-parameters: |
| 82 | project: '{project}' |
| 83 | branch: '{branch}' |
| 84 | - nordix-gerrit-parameters |
| 85 | - label: |
| 86 | name: SLAVE_LABEL |
Fatih Degirmenci | e28fcbf | 2019-07-17 11:19:11 +0200 | [diff] [blame] | 87 | default: '{slave-label}' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 88 | description: 'Slave label to schedule this job on. These slaves have cloud infra installed on them.' |
| 89 | - string: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 90 | name: DISTRO |
| 91 | default: '{distro}' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 92 | description: 'Distribution to use for configuring target nodes (networking etc.)' |
| 93 | - string: |
Fatih Degirmenci | aaf9584 | 2019-04-23 17:54:19 +0200 | [diff] [blame] | 94 | name: DEPLOY_TYPE |
| 95 | default: '{type}' |
| 96 | description: 'Type of the deployment' |
| 97 | - string: |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 98 | name: DEPLOY_SCENARIO |
| 99 | default: 'k8-calico-nofeature' |
| 100 | description: 'Scenario to deploy and test' |
| 101 | - string: |
| 102 | name: TEST_SUITE |
| 103 | default: 'healthcheck' |
| 104 | description: 'Test suite to run' |
| 105 | - string: |
Fatih Degirmenci | 3df6760 | 2019-05-08 11:25:19 +0200 | [diff] [blame] | 106 | name: YARDSTICK_DISPATCHER |
| 107 | default: 'file' |
| 108 | description: 'Dispatcher to use for Yardstick reporting' |
| 109 | - string: |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 110 | name: CLEANUP |
| 111 | default: 'true' |
| 112 | description: 'Cleanup leftovers of the previous run' |
| 113 | |
| 114 | properties: |
| 115 | - logrotate |
| 116 | - build-blocker: |
| 117 | use-build-blocker: true |
| 118 | blocking-jobs: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 119 | - 'cloud-infra-verify-testfw-{distro}-.*' |
Fatih Degirmenci | e921738 | 2019-10-01 16:41:46 +0200 | [diff] [blame] | 120 | - 'nolabs-.*' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 121 | block-level: 'NODE' |
| 122 | - throttle: |
| 123 | max-per-node: 1 |
| 124 | max-total: 3 |
| 125 | option: project |
| 126 | |
| 127 | wrappers: |
| 128 | - build-timeout: |
| 129 | timeout: 120 |
| 130 | - fix-workspace-permissions |
| 131 | |
| 132 | scm: |
| 133 | - git-scm-gerrit: |
| 134 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 135 | branch: '{branch}' |
| 136 | refspec: $GERRIT_REFSPEC |
robert.tomczyk | 7e50787 | 2019-06-18 17:20:26 +0100 | [diff] [blame] | 137 | wipe_workspace: true |
| 138 | clean_before: false |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 139 | |
| 140 | triggers: |
| 141 | - nordix-gerrit-trigger-patchset-created: |
| 142 | project: 'infra\/test' |
| 143 | branch: '{branch}' |
| 144 | files: '**' |
| 145 | |
| 146 | builders: |
| 147 | - multijob: |
| 148 | name: functest |
| 149 | condition: SUCCESSFUL |
| 150 | projects: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 151 | - name: 'cloud-infra-verify-testfw-{distro}-functest-{type}-{stream}' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 152 | current-parameters: true |
| 153 | predefined-parameters: | |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 154 | DISTRO=$DISTRO |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 155 | DEPLOY_SCENARIO=$DEPLOY_SCENARIO |
| 156 | TEST_SUITE=$TEST_SUITE |
Fatih Degirmenci | 3df6760 | 2019-05-08 11:25:19 +0200 | [diff] [blame] | 157 | YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 158 | CLEANUP=$CLEANUP |
| 159 | GERRIT_PROJECT=$GERRIT_PROJECT |
| 160 | GERRIT_BRANCH=$GERRIT_BRANCH |
| 161 | GERRIT_REFSPEC=$GERRIT_REFSPEC |
| 162 | GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER |
| 163 | GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE |
| 164 | node-parameters: true |
| 165 | kill-phase-on: FAILURE |
| 166 | abort-all-job: true |
| 167 | - multijob: |
| 168 | name: yardstick |
| 169 | condition: SUCCESSFUL |
| 170 | projects: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 171 | - name: 'cloud-infra-verify-testfw-{distro}-yardstick-{type}-{stream}' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 172 | current-parameters: true |
| 173 | predefined-parameters: | |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 174 | DISTRO=$DISTRO |
Fatih Degirmenci | aaf9584 | 2019-04-23 17:54:19 +0200 | [diff] [blame] | 175 | DEPLOY_TYPE=$DEPLOY_TYPE |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 176 | DEPLOY_SCENARIO=$DEPLOY_SCENARIO |
| 177 | TEST_SUITE=$TEST_SUITE |
Fatih Degirmenci | 3df6760 | 2019-05-08 11:25:19 +0200 | [diff] [blame] | 178 | YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 179 | CLEANUP=$CLEANUP |
| 180 | GERRIT_PROJECT=$GERRIT_PROJECT |
| 181 | GERRIT_BRANCH=$GERRIT_BRANCH |
| 182 | GERRIT_REFSPEC=$GERRIT_REFSPEC |
| 183 | GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER |
| 184 | GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE |
| 185 | node-parameters: true |
| 186 | kill-phase-on: FAILURE |
| 187 | abort-all-job: true |
| 188 | |
| 189 | - job-template: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 190 | name: 'cloud-infra-verify-testfw-{distro}-{phase}-{type}-{stream}' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 191 | |
| 192 | disabled: false |
| 193 | |
| 194 | concurrent: true |
| 195 | |
| 196 | properties: |
| 197 | - logrotate |
| 198 | |
| 199 | parameters: |
| 200 | - string: |
| 201 | name: PROJECT |
| 202 | default: $GERRIT_PROJECT |
| 203 | - string: |
Fatih Degirmenci | cde0f9d | 2019-05-09 12:50:05 +0200 | [diff] [blame] | 204 | name: DISTRO |
| 205 | default: 'ubuntu1804' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 206 | description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.' |
| 207 | - string: |
Fatih Degirmenci | aaf9584 | 2019-04-23 17:54:19 +0200 | [diff] [blame] | 208 | name: DEPLOY_TYPE |
| 209 | default: 'virtual' |
| 210 | description: 'Type of the deployment. Overriden by upstream job.' |
| 211 | - string: |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 212 | name: DEPLOY_SCENARIO |
| 213 | default: 'k8-calico-nofeature' |
| 214 | description: 'Scenario to deploy and test' |
| 215 | - string: |
| 216 | name: TEST_FW |
| 217 | default: '{phase}' |
| 218 | description: 'Test framework to use' |
| 219 | - string: |
| 220 | name: TEST_SUITE |
| 221 | default: 'healthcheck' |
| 222 | description: 'Test suite to run' |
| 223 | - string: |
| 224 | name: TEST_REPO_URL |
| 225 | default: 'https://gerrit.nordix.org/infra/test.git' |
| 226 | description: 'URL to Nordix Cloud Infra test repository' |
| 227 | - string: |
Fatih Degirmenci | 3df6760 | 2019-05-08 11:25:19 +0200 | [diff] [blame] | 228 | name: YARDSTICK_DISPATCHER |
| 229 | default: 'file' |
| 230 | description: 'Dispatcher to use for Yardstick reporting' |
| 231 | - string: |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 232 | name: CLEANUP |
| 233 | default: 'false' |
| 234 | |
| 235 | wrappers: |
| 236 | - build-timeout: |
| 237 | timeout: 120 |
| 238 | - fix-workspace-permissions |
| 239 | |
| 240 | scm: |
| 241 | - git-scm-gerrit: |
| 242 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 243 | branch: '{branch}' |
| 244 | refspec: $GERRIT_REFSPEC |
robert.tomczyk | 7e50787 | 2019-06-18 17:20:26 +0100 | [diff] [blame] | 245 | wipe_workspace: true |
| 246 | clean_before: false |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 247 | |
| 248 | builders: |
Fatih Degirmenci | 0c0e67a | 2019-04-09 08:39:51 +0200 | [diff] [blame] | 249 | - 'cloud-infra-testfw-macro' |
Fatih Degirmenci | 429341c | 2019-04-03 11:18:28 -0700 | [diff] [blame] | 250 | |
| 251 | # vim: set ts=2 sw=2 expandtab: |