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