Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 1 | --- |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # Copyright (C) 2019 Nordix Foundation. |
| 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
| 20 | - project: |
| 21 | name: 'engine-verify-online-deploy-test' |
| 22 | |
| 23 | project: 'engine-verify-online-deploy-test' |
| 24 | |
| 25 | stream: |
| 26 | - 'master': |
| 27 | branch: '{stream}' |
Fatih Degirmenci | 732515b | 2020-03-19 14:46:07 +0000 | [diff] [blame^] | 28 | pdf: 'https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/nordix-vpod1-pdf.yml' |
| 29 | idf: 'https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/nordix-vpod1-idf.yml' |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 30 | |
| 31 | phase: |
| 32 | - deploy |
| 33 | - test |
| 34 | |
| 35 | type: |
| 36 | - virtual: |
| 37 | provisioner-type: 'bifrost' |
| 38 | slave-type: 'vpod' |
| 39 | - cloud: |
| 40 | provisioner-type: 'heat' |
| 41 | slave-type: 'jumphost' |
| 42 | |
| 43 | distro: |
| 44 | - ubuntu1804 |
| 45 | |
| 46 | cloud: |
| 47 | - city: |
| 48 | openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap' |
| 49 | |
| 50 | jobs: |
| 51 | - 'engine-verify-online-deploy-test-{distro}-{cloud}-{type}-{stream}' |
| 52 | - 'engine-verify-online-{phase}-{distro}-{cloud}-{type}-{stream}' |
| 53 | |
| 54 | - job-template: |
| 55 | name: 'engine-verify-online-deploy-test-{distro}-{cloud}-{type}-{stream}' |
| 56 | |
| 57 | project-type: multijob |
| 58 | |
| 59 | disabled: '{obj:disabled}' |
| 60 | |
| 61 | concurrent: true |
| 62 | |
| 63 | parameters: |
| 64 | - project-parameters: |
| 65 | project: $GERRIT_PROJECT |
| 66 | branch: '{branch}' |
| 67 | description: 'The project and branch which the change is proposed for' |
| 68 | - label: |
| 69 | name: SLAVE_LABEL |
| 70 | default: 'engine-{slave-type}-online-{distro}' |
| 71 | description: 'Slave label to schedule this job on.' |
| 72 | - string: |
| 73 | name: PROVISIONER_TYPE |
| 74 | default: '{provisioner-type}' |
| 75 | description: 'Provisioner type to use' |
| 76 | - string: |
Fatih Degirmenci | 732515b | 2020-03-19 14:46:07 +0000 | [diff] [blame^] | 77 | name: PDF |
| 78 | default: '{pdf}' |
| 79 | description: 'PDF file to use for deployment' |
| 80 | - string: |
| 81 | name: IDF |
| 82 | default: '{idf}' |
| 83 | description: 'IDF file to use for deployment' |
| 84 | - string: |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 85 | name: HEAT_ENVIRONMENT_FILENAME |
| 86 | default: 'heat-environment-{cloud}-{distro}.yaml' |
| 87 | description: 'Name of heat-environment file to use.' |
| 88 | - string: |
| 89 | name: STACK_NAME |
Fatih Degirmenci | 0861dce | 2020-03-17 23:16:49 +0000 | [diff] [blame] | 90 | default: "nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER" |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 91 | description: 'Name of the created stack' |
| 92 | - string: |
| 93 | name: KEYPAIR_NAME |
Fatih Degirmenci | fea7fd0 | 2020-03-18 07:58:29 +0000 | [diff] [blame] | 94 | default: "keypair-nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER" |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 95 | description: 'Name of the created keypair' |
| 96 | - string: |
| 97 | name: USE_PREBUILT_DEPLOYMENT_IMAGE |
| 98 | default: 'true' |
| 99 | description: 'Use prebuilt deployment image while running as part of CI/CD' |
| 100 | - string: |
Fatih Degirmenci | 2683ff2 | 2020-03-17 16:00:27 +0000 | [diff] [blame] | 101 | name: TEST_REPO_URL |
| 102 | default: 'https://gerrit.nordix.org/infra/test.git' |
| 103 | description: 'URL to clone the test repo from' |
| 104 | - string: |
| 105 | name: TEST_FW |
| 106 | default: 'functest' |
| 107 | description: 'Test framework to use' |
| 108 | - string: |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 109 | name: TEST_SUITE |
| 110 | default: 'healthcheck' |
| 111 | description: 'Test suite to run' |
| 112 | - string: |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 113 | name: DELETE_STACK |
Fatih Degirmenci | 2683ff2 | 2020-03-17 16:00:27 +0000 | [diff] [blame] | 114 | default: 'true' |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 115 | description: 'Delete the stack upon completion of the build' |
| 116 | |
| 117 | properties: |
| 118 | - logrotate |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 119 | - throttle: |
| 120 | max-per-node: 1 |
| 121 | max-total: 3 |
| 122 | option: project |
| 123 | |
| 124 | wrappers: |
| 125 | - build-timeout: |
| 126 | timeout: 180 |
| 127 | - credentials-binding: |
| 128 | - file: |
| 129 | credential-id: '{openrc-credentials-file}' |
| 130 | variable: OPENRC_FILE |
| 131 | - username-password-separated: |
| 132 | credential-id: 'nordix-cicd-arm-credentials' |
| 133 | username: NORDIX_ARM_USERNAME |
| 134 | password: NORDIX_ARM_TOKEN |
| 135 | - mask-passwords |
| 136 | - fix-workspace-permissions |
| 137 | - openstack: |
| 138 | single-use: True |
| 139 | |
| 140 | scm: |
| 141 | - git-scm-gerrit: |
| 142 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 143 | branch: '{branch}' |
| 144 | refspec: $GERRIT_REFSPEC |
| 145 | wipe_workspace: true |
| 146 | clean_before: false |
| 147 | |
| 148 | builders: |
Fatih Degirmenci | 2683ff2 | 2020-03-17 16:00:27 +0000 | [diff] [blame] | 149 | - 'engine-wait-pkg-mgr-macro' |
Fatih Degirmenci | 79e736b | 2020-03-13 16:24:37 +0000 | [diff] [blame] | 150 | - 'engine-generate-ssh-keypair-macro' |
| 151 | - 'engine-download-artifact-macro' |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 152 | - multijob: |
Fatih Degirmenci | 732515b | 2020-03-19 14:46:07 +0000 | [diff] [blame^] | 153 | name: "online deployment on {type} instances" |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 154 | condition: SUCCESSFUL |
| 155 | execution-type: PARALLEL |
| 156 | projects: |
| 157 | - name: 'engine-verify-online-deploy-{distro}-city-{type}-master' |
| 158 | current-parameters: true |
| 159 | node-parameters: true |
| 160 | kill-phase-on: FAILURE |
Fatih Degirmenci | 2683ff2 | 2020-03-17 16:00:27 +0000 | [diff] [blame] | 161 | abort-all-job: false |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 162 | - multijob: |
Fatih Degirmenci | 732515b | 2020-03-19 14:46:07 +0000 | [diff] [blame^] | 163 | name: "online testing on {type} instances" |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 164 | condition: SUCCESSFUL |
| 165 | execution-type: PARALLEL |
| 166 | projects: |
| 167 | - name: 'engine-verify-online-test-{distro}-city-{type}-master' |
| 168 | current-parameters: true |
| 169 | node-parameters: true |
| 170 | kill-phase-on: FAILURE |
Fatih Degirmenci | 2683ff2 | 2020-03-17 16:00:27 +0000 | [diff] [blame] | 171 | abort-all-job: false |
Fatih Degirmenci | 0861dce | 2020-03-17 23:16:49 +0000 | [diff] [blame] | 172 | |
| 173 | publishers: |
| 174 | - postbuildscript: |
| 175 | builders: |
| 176 | - role: SLAVE |
| 177 | build-on: |
| 178 | - SUCCESS |
| 179 | - FAILURE |
| 180 | - ABORTED |
| 181 | - NOT_BUILT |
| 182 | - UNSTABLE |
| 183 | build-steps: |
| 184 | - 'engine-wait-pkg-mgr-macro' |
| 185 | - 'engine-delete-stack-macro' |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 186 | |
| 187 | - job-template: |
| 188 | name: 'engine-verify-online-{phase}-{distro}-{cloud}-{type}-{stream}' |
| 189 | |
| 190 | disabled: '{obj:disabled}' |
| 191 | |
| 192 | concurrent: true |
| 193 | |
| 194 | properties: |
| 195 | - logrotate |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 196 | - throttle: |
| 197 | max-per-node: 1 |
| 198 | max-total: 3 |
| 199 | option: project |
| 200 | |
| 201 | wrappers: |
| 202 | - build-timeout: |
| 203 | timeout: 180 |
| 204 | - credentials-binding: |
| 205 | - file: |
| 206 | credential-id: '{openrc-credentials-file}' |
| 207 | variable: OPENRC_FILE |
| 208 | - username-password-separated: |
| 209 | credential-id: 'nordix-cicd-arm-credentials' |
| 210 | username: NORDIX_ARM_USERNAME |
| 211 | password: NORDIX_ARM_TOKEN |
| 212 | - mask-passwords |
| 213 | - fix-workspace-permissions |
Fatih Degirmenci | 471f8d9 | 2020-03-13 12:18:42 +0000 | [diff] [blame] | 214 | |
| 215 | scm: |
| 216 | - git-scm-gerrit: |
| 217 | ssh-credentials-id: nordixinfra-nordix-gerrit-ssh |
| 218 | branch: '{branch}' |
| 219 | refspec: $GERRIT_REFSPEC |
| 220 | wipe_workspace: true |
| 221 | clean_before: false |
| 222 | |
| 223 | builders: |
Fatih Degirmenci | 79e736b | 2020-03-13 16:24:37 +0000 | [diff] [blame] | 224 | - 'engine-{phase}-macro' |