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: 'Verbosity setting for the engine - true or false - default is false'
80 name: NORDIX_ARM_PUBLIC_IP
81 default: '91.106.198.25'
82 description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
84 name: NORDIX_ARM_HTTPS_URL
85 default: 'https://artifactory.nordix.org/artifactory'
86 description: 'URL to Nordix Artifactory'
89 default: 'nordix-kubernetes'
90 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
92 name: NORDIX_ARTIFACT_URL
93 default: "$NORDIX_ARM_HTTPS_URL/$NORDIX_ARM_REPO/installer/oss/change/$GERRIT_CHANGE_NUMBER/k8s-installer-ubuntu1804.bsx"
94 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
97 default: 'engine-master-{environment-type}-{distro}'
98 description: 'Slave label to schedule this job on.'
100 project: $GERRIT_PROJECT
102 description: 'The project and branch which the change is proposed for'
103 - nordix-gerrit-parameters
116 - fix-workspace-permissions
122 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
124 refspec: $GERRIT_REFSPEC
130 server-name: 'Nordix Gerrit'
132 - patchset-created-event:
133 exclude-drafts: 'false'
134 exclude-trivial-rebase: 'false'
135 exclude-no-code-change: 'false'
136 - draft-published-event
137 - comment-added-contains-event:
138 comment-contains-value: 'recheck'
139 - comment-added-contains-event:
140 comment-contains-value: 'reverify'
142 - project-compare-type: 'REG_EXP'
143 project-pattern: '{gated-projects}'
145 - branch-compare-type: 'ANT'
146 branch-pattern: '**/{branch}'
147 disable-strict-forbidden-file-verification: 'true'
148 forbidden-file-paths:
152 successful: '{obj:successful}'
153 failed: '{obj:failed}'
154 unstable: '{obj:unstable}'
155 notbuilt: '{obj:notbuilt}'
156 custom-url: '* $JOB_NAME $BUILD_URL'
157 readable-message: 'true'
162 condition: SUCCESSFUL
163 execution-type: PARALLEL
165 - name: 'engine-verify-packaging-{distro}-{stream}'
166 current-parameters: true
167 node-parameters: true
168 kill-phase-on: FAILURE
171 name: "{environment-type} deployment and testing"
172 condition: SUCCESSFUL
173 execution-type: PARALLEL
175 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-virtual-master'
176 current-parameters: false
177 node-parameters: false
178 predefined-parameters: |
179 GIT_BASE_SSH=$GIT_BASE_SSH
180 GERRIT_PROJECT=$GERRIT_PROJECT
181 GERRIT_BRANCH=$GERRIT_BRANCH
182 GERRIT_REFSPEC=$GERRIT_REFSPEC
183 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
184 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
185 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
186 PROJECT=$GERRIT_PROJECT
188 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
189 NORDIX_ARTIFACT_URL=$NORDIX_ARTIFACT_URL
190 EXECUTION_MODE=$EXECUTION_MODE
193 kill-phase-on: FAILURE
195 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-cloud-master'
196 current-parameters: false
197 node-parameters: false
198 predefined-parameters: |
199 GIT_BASE_SSH=$GIT_BASE_SSH
200 GERRIT_PROJECT=$GERRIT_PROJECT
201 GERRIT_BRANCH=$GERRIT_BRANCH
202 GERRIT_REFSPEC=$GERRIT_REFSPEC
203 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
204 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
205 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
206 PROJECT=$GERRIT_PROJECT
208 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
209 NORDIX_ARTIFACT_URL=$NORDIX_ARTIFACT_URL
210 EXECUTION_MODE=$EXECUTION_MODE
213 kill-phase-on: FAILURE
217 name: 'engine-verify-packaging-{distro}-{stream}'
219 disabled: '{obj:disabled}'
233 - credentials-binding:
234 - username-password-separated:
235 credential-id: 'nordix-cicd-arm-credentials'
236 username: NORDIX_ARM_USERNAME
237 password: NORDIX_ARM_TOKEN
239 - fix-workspace-permissions
243 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
245 refspec: $GERRIT_REFSPEC
250 - 'engine-wait-pkg-mgr-macro'
251 - 'engine-generate-ssh-keypair-macro'
252 - 'engine-packaging-macro'
253 - 'engine-upload-artifact-macro'