Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +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: |
Fatih Degirmenci | 6af3e78 | 2020-04-15 07:06:51 +0000 | [diff] [blame] | 21 | name: 'kubernetes-release-offline' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 22 | |
Fatih Degirmenci | 6af3e78 | 2020-04-15 07:06:51 +0000 | [diff] [blame] | 23 | project: 'kubernetes-release-offline' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 24 | |
| 25 | environment-type: |
| 26 | - offline: |
| 27 | disabled: false |
| 28 | execution-mode: offline-deployment |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 29 | |
| 30 | distro: |
| 31 | - ubuntu1804 |
| 32 | |
| 33 | phase: |
| 34 | - package |
| 35 | - promote |
| 36 | |
| 37 | cloud: |
| 38 | - city: |
| 39 | openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap' |
| 40 | |
| 41 | jobs: |
| 42 | - 'kubernetes-periodic-release-{environment-type}-{distro}' |
Fatih Degirmenci | 299841a | 2020-03-22 09:04:13 +0000 | [diff] [blame] | 43 | - 'kubernetes-periodic-package-{distro}' |
| 44 | - 'kubernetes-periodic-promote-{distro}' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 45 | |
| 46 | - job-template: |
| 47 | name: 'kubernetes-periodic-release-{environment-type}-{distro}' |
| 48 | |
| 49 | project-type: multijob |
| 50 | |
| 51 | disabled: '{obj:disabled}' |
| 52 | |
| 53 | concurrent: false |
| 54 | |
| 55 | parameters: |
| 56 | - string: |
| 57 | name: EXECUTION_MODE |
| 58 | default: '{execution-mode}' |
| 59 | description: 'Engine execution mode - online-deployment or offline-deployment - default is online-deployment' |
| 60 | - string: |
| 61 | name: DISTRO |
| 62 | default: '{distro}' |
| 63 | description: 'Distribution to use for configuring target nodes (networking etc.)' |
| 64 | - string: |
| 65 | name: INSTALLER_TYPE |
| 66 | default: 'kubespray' |
| 67 | description: 'Installer type to use' |
| 68 | - string: |
| 69 | name: DEPLOY_SCENARIO |
Fatih Degirmenci | 011e8a0 | 2020-04-22 08:58:14 +0000 | [diff] [blame^] | 70 | default: 'k8-multus-plugins' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 71 | description: 'Scenario to deploy and test' |
| 72 | - string: |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 73 | name: VERBOSITY |
| 74 | default: 'true' |
| 75 | description: 'Verbosity setting for the engine - true or false - default is false' |
| 76 | - string: |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 77 | name: ARTIFACTS_TO_UPLOAD |
| 78 | default: "k8s-installer-ubuntu1804.bsx offline-package.tgz" |
| 79 | description: 'Artifacts to upload' |
| 80 | - string: |
| 81 | name: ARTIFACT_TO_DOWNLOAD |
| 82 | default: "k8s-installer-ubuntu1804.bsx" |
| 83 | description: 'Artifact to download' |
| 84 | - string: |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 85 | name: NORDIX_ARM_PUBLIC_IP |
| 86 | default: '91.106.198.25' |
| 87 | description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name' |
| 88 | - string: |
| 89 | name: NORDIX_ARM_HTTPS_URL |
| 90 | default: 'https://artifactory.nordix.org/artifactory' |
| 91 | description: 'URL to Nordix Artifactory' |
| 92 | - string: |
| 93 | name: NORDIX_ARM_REPO |
| 94 | default: 'nordix-kubernetes' |
| 95 | description: 'Name of the repository to upload and download artifact to/from. Depends on the stack' |
| 96 | - string: |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 97 | name: CI_LOOP |
| 98 | default: 'periodic' |
| 99 | description: 'CI loop type' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 100 | - label: |
| 101 | name: SLAVE_LABEL |
Fatih Degirmenci | 4e7a040 | 2020-04-17 18:59:53 +0000 | [diff] [blame] | 102 | default: 'engine-package-ubuntu1804' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 103 | description: 'Slave label to schedule this job on.' |
| 104 | |
| 105 | properties: |
| 106 | - logrotate |
Fatih Degirmenci | 4e7a040 | 2020-04-17 18:59:53 +0000 | [diff] [blame] | 107 | - build-blocker: |
| 108 | use-build-blocker: true |
| 109 | blocking-jobs: |
| 110 | - 'engine-verify-package-.*' |
| 111 | - 'onap-sdc-periodic-release-offline-.*' |
| 112 | - 'onap-so-periodic-release-offline-.*' |
| 113 | - 'kubernetes-periodic-release-offline-.*' |
| 114 | block-level: 'NODE' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 115 | |
| 116 | wrappers: |
Fatih Degirmenci | 98990a6 | 2020-03-31 07:04:21 +0000 | [diff] [blame] | 117 | - build-timeout: |
| 118 | timeout: 600 |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 119 | - mask-passwords |
| 120 | - fix-workspace-permissions |
| 121 | |
| 122 | triggers: |
| 123 | - pollscm: |
| 124 | cron: "H 0,8,16 * * *" |
| 125 | |
| 126 | scm: |
| 127 | - git: |
| 128 | url: https://gerrit.nordix.org/infra/engine.git |
| 129 | branches: |
| 130 | - master |
| 131 | timeout: 15 |
| 132 | wipe-workspace: true |
| 133 | |
| 134 | builders: |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 135 | - 'generate-ssh-keypair-macro' |
Fatih Degirmenci | 299841a | 2020-03-22 09:04:13 +0000 | [diff] [blame] | 136 | - 'generate-build-metadata-macro' |
| 137 | - 'wait-pkg-mgr-macro' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 138 | - multijob: |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 139 | name: package |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 140 | condition: SUCCESSFUL |
| 141 | execution-type: PARALLEL |
| 142 | projects: |
| 143 | - name: 'kubernetes-periodic-package-{distro}' |
| 144 | current-parameters: true |
| 145 | git-revision: true |
| 146 | node-parameters: true |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 147 | property-file: "$WORKSPACE/build.properties" |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 148 | kill-phase-on: FAILURE |
| 149 | abort-all-job: true |
| 150 | - multijob: |
Fatih Degirmenci | 011e8a0 | 2020-04-22 08:58:14 +0000 | [diff] [blame^] | 151 | name: release test k8-multus-plugins |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 152 | condition: SUCCESSFUL |
| 153 | execution-type: PARALLEL |
| 154 | projects: |
Fatih Degirmenci | 011e8a0 | 2020-04-22 08:58:14 +0000 | [diff] [blame^] | 155 | - name: 'k8-multus-multus-plugins-offline-{distro}-baremetal-periodic' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 156 | current-parameters: false |
| 157 | git-revision: false |
| 158 | node-parameters: false |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 159 | property-file: "$WORKSPACE/build.properties" |
| 160 | predefined-parameters: | |
Fatih Degirmenci | 299841a | 2020-03-22 09:04:13 +0000 | [diff] [blame] | 161 | EXECUTION_MODE=$EXECUTION_MODE |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 162 | NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP |
| 163 | ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD |
| 164 | VERBOSITY=$VERBOSITY |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 165 | kill-phase-on: FAILURE |
| 166 | abort-all-job: true |
| 167 | - multijob: |
| 168 | name: promotion |
| 169 | condition: SUCCESSFUL |
| 170 | execution-type: PARALLEL |
| 171 | projects: |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 172 | - name: 'kubernetes-periodic-promote-{distro}' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 173 | current-parameters: true |
| 174 | git-revision: true |
| 175 | node-parameters: true |
Fatih Degirmenci | 8d3e682 | 2020-03-19 14:55:23 +0000 | [diff] [blame] | 176 | property-file: "$WORKSPACE/build.properties" |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 177 | kill-phase-on: FAILURE |
| 178 | abort-all-job: true |
| 179 | |
| 180 | - job-template: |
Fatih Degirmenci | 299841a | 2020-03-22 09:04:13 +0000 | [diff] [blame] | 181 | name: 'kubernetes-periodic-package-{distro}' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 182 | |
| 183 | disabled: '{obj:disabled}' |
| 184 | |
| 185 | concurrent: false |
| 186 | |
| 187 | properties: |
| 188 | - logrotate |
| 189 | |
| 190 | wrappers: |
Fatih Degirmenci | 98990a6 | 2020-03-31 07:04:21 +0000 | [diff] [blame] | 191 | - build-timeout: |
| 192 | timeout: 70 |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 193 | - credentials-binding: |
| 194 | - username-password-separated: |
| 195 | credential-id: 'nordix-cicd-arm-credentials' |
| 196 | username: NORDIX_ARM_USERNAME |
| 197 | password: NORDIX_ARM_TOKEN |
| 198 | - mask-passwords |
| 199 | - fix-workspace-permissions |
| 200 | |
| 201 | scm: |
| 202 | - git: |
| 203 | url: https://gerrit.nordix.org/infra/engine.git |
| 204 | branches: |
| 205 | - master |
| 206 | timeout: 15 |
| 207 | wipe-workspace: true |
| 208 | |
| 209 | builders: |
Fatih Degirmenci | 299841a | 2020-03-22 09:04:13 +0000 | [diff] [blame] | 210 | - 'package-macro' |
| 211 | - 'upload-artifact-macro' |
Fatih Degirmenci | c4db995 | 2020-03-19 12:46:33 +0000 | [diff] [blame] | 212 | |
Fatih Degirmenci | 299841a | 2020-03-22 09:04:13 +0000 | [diff] [blame] | 213 | - job-template: |
| 214 | name: 'kubernetes-periodic-promote-{distro}' |
| 215 | |
| 216 | disabled: '{obj:disabled}' |
| 217 | |
| 218 | concurrent: false |
| 219 | |
| 220 | properties: |
| 221 | - logrotate |
| 222 | |
| 223 | wrappers: |
Fatih Degirmenci | 98990a6 | 2020-03-31 07:04:21 +0000 | [diff] [blame] | 224 | - build-timeout: |
| 225 | timeout: 30 |
Fatih Degirmenci | 299841a | 2020-03-22 09:04:13 +0000 | [diff] [blame] | 226 | - credentials-binding: |
| 227 | - username-password-separated: |
| 228 | credential-id: 'nordix-cicd-arm-credentials' |
| 229 | username: NORDIX_ARM_USERNAME |
| 230 | password: NORDIX_ARM_TOKEN |
| 231 | - mask-passwords |
| 232 | - fix-workspace-permissions |
| 233 | |
| 234 | scm: |
| 235 | - git: |
| 236 | url: https://gerrit.nordix.org/infra/engine.git |
| 237 | branches: |
| 238 | - master |
| 239 | timeout: 15 |
| 240 | wipe-workspace: true |
| 241 | |
| 242 | builders: |
| 243 | - 'promote-macro' |