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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
21 name: 'engine-deployment'
23 project: 'engine-deployment'
28 gated-projects: 'infra\/engine'
33 execution-mode: online-deployment
40 execution-mode: offline-deployment
51 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
54 - 'engine-verify-{environment-type}-{distro}-{cloud}-{stream}'
55 - 'engine-verify-packaging-{distro}-{stream}'
58 name: 'engine-verify-{environment-type}-{distro}-{cloud}-{stream}'
60 project-type: multijob
62 disabled: '{obj:disabled}'
69 default: '{execution-mode}'
70 description: 'Engine execution mode - online-deployment or offline-deployment - default is online-deployment'
74 description: 'Distribution to use for configuring target nodes (networking etc.)'
78 description: 'Installer type to use'
81 default: 'k8-calico-nofeature'
82 description: 'Scenario to deploy and test'
86 description: 'Verbosity setting for the engine - true or false - default is false'
88 name: NORDIX_ARM_PUBLIC_IP
89 default: '91.106.198.25'
90 description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
92 name: NORDIX_ARM_HTTPS_URL
93 default: 'https://artifactory.nordix.org/artifactory'
94 description: 'URL to Nordix Artifactory'
97 default: 'nordix-kubernetes'
98 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
100 name: NORDIX_ARTIFACT_URL
101 default: "$NORDIX_ARM_HTTPS_URL/$NORDIX_ARM_REPO/installer/oss/change/$GERRIT_CHANGE_NUMBER/k8s-installer-ubuntu1804.bsx"
102 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
106 description: 'CI loop type'
109 default: 'engine-master-{environment-type}-{distro}'
110 description: 'Slave label to schedule this job on.'
111 - project-parameters:
112 project: $GERRIT_PROJECT
114 description: 'The project and branch which the change is proposed for'
115 - nordix-gerrit-parameters
128 - fix-workspace-permissions
134 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
136 refspec: $GERRIT_REFSPEC
142 server-name: 'Nordix Gerrit'
144 - patchset-created-event:
145 exclude-drafts: 'false'
146 exclude-trivial-rebase: 'false'
147 exclude-no-code-change: 'false'
148 - draft-published-event
149 - comment-added-contains-event:
150 comment-contains-value: 'recheck'
151 - comment-added-contains-event:
152 comment-contains-value: 'reverify'
154 - project-compare-type: 'REG_EXP'
155 project-pattern: '{gated-projects}'
157 - branch-compare-type: 'ANT'
158 branch-pattern: '**/{branch}'
159 disable-strict-forbidden-file-verification: 'true'
160 forbidden-file-paths:
164 successful: '{obj:successful}'
165 failed: '{obj:failed}'
166 unstable: '{obj:unstable}'
167 notbuilt: '{obj:notbuilt}'
168 custom-url: '* $JOB_NAME $BUILD_URL'
169 readable-message: 'true'
174 condition: SUCCESSFUL
175 execution-type: PARALLEL
177 - name: 'engine-verify-packaging-{distro}-{stream}'
178 current-parameters: true
179 node-parameters: true
180 kill-phase-on: FAILURE
183 name: "{environment-type} deployment and testing"
184 condition: SUCCESSFUL
185 execution-type: PARALLEL
187 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-virtual-master'
188 current-parameters: false
189 node-parameters: false
190 predefined-parameters: |
191 GIT_BASE_SSH=$GIT_BASE_SSH
192 GERRIT_PROJECT=$GERRIT_PROJECT
193 GERRIT_BRANCH=$GERRIT_BRANCH
194 GERRIT_REFSPEC=$GERRIT_REFSPEC
195 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
196 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
197 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
198 PROJECT=$GERRIT_PROJECT
200 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
201 NORDIX_ARTIFACT_URL=$NORDIX_ARTIFACT_URL
202 EXECUTION_MODE=$EXECUTION_MODE
205 INSTALLER_TYPE=$INSTALLER_TYPE
206 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
209 kill-phase-on: FAILURE
211 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-cloud-master'
212 current-parameters: false
213 node-parameters: false
214 predefined-parameters: |
215 GIT_BASE_SSH=$GIT_BASE_SSH
216 GERRIT_PROJECT=$GERRIT_PROJECT
217 GERRIT_BRANCH=$GERRIT_BRANCH
218 GERRIT_REFSPEC=$GERRIT_REFSPEC
219 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
220 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
221 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
222 PROJECT=$GERRIT_PROJECT
224 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
225 NORDIX_ARTIFACT_URL=$NORDIX_ARTIFACT_URL
226 EXECUTION_MODE=$EXECUTION_MODE
229 INSTALLER_TYPE=$INSTALLER_TYPE
230 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
233 kill-phase-on: FAILURE
237 name: 'engine-verify-packaging-{distro}-{stream}'
239 disabled: '{obj:disabled}'
253 - credentials-binding:
254 - username-password-separated:
255 credential-id: 'nordix-cicd-arm-credentials'
256 username: NORDIX_ARM_USERNAME
257 password: NORDIX_ARM_TOKEN
259 - fix-workspace-permissions
263 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
265 refspec: $GERRIT_REFSPEC
270 - 'engine-wait-pkg-mgr-macro'
271 - 'engine-generate-ssh-keypair-macro'
272 - 'engine-packaging-macro'
273 - 'engine-upload-artifact-macro'