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
108 # use-build-blocker: true
110 # - 'engine-verify-online-ubuntu1804.*'
111 # - 'engine-verify-offline-ubuntu1804.*'
112 # block-level: 'NODE'
122 - fix-workspace-permissions
128 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
130 refspec: $GERRIT_REFSPEC
136 server-name: 'Nordix Gerrit'
138 - patchset-created-event:
139 exclude-drafts: 'false'
140 exclude-trivial-rebase: 'false'
141 exclude-no-code-change: 'false'
142 - draft-published-event
143 - comment-added-contains-event:
144 comment-contains-value: 'recheck'
145 - comment-added-contains-event:
146 comment-contains-value: 'reverify'
148 - project-compare-type: 'REG_EXP'
149 project-pattern: '{gated-projects}'
151 - branch-compare-type: 'ANT'
152 branch-pattern: '**/{branch}'
153 disable-strict-forbidden-file-verification: 'true'
154 forbidden-file-paths:
158 successful: '{obj:successful}'
159 failed: '{obj:failed}'
160 unstable: '{obj:unstable}'
161 notbuilt: '{obj:notbuilt}'
162 custom-url: '* $JOB_NAME $BUILD_URL'
163 readable-message: 'true'
168 condition: SUCCESSFUL
169 execution-type: PARALLEL
171 - name: 'engine-verify-packaging-{distro}-{stream}'
172 current-parameters: true
173 node-parameters: true
174 kill-phase-on: FAILURE
176 # enable-condition: "\"$EXECUTION_MODE\" == \"offline-deployment\""
178 name: "{environment-type} deployment and testing"
179 condition: SUCCESSFUL
180 execution-type: PARALLEL
182 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-virtual-master'
183 current-parameters: false
184 node-parameters: false
185 predefined-parameters: |
186 GIT_BASE_SSH=$GIT_BASE_SSH
187 GERRIT_PROJECT=$GERRIT_PROJECT
188 GERRIT_BRANCH=$GERRIT_BRANCH
189 GERRIT_REFSPEC=$GERRIT_REFSPEC
190 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
191 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
192 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
193 PROJECT=$GERRIT_PROJECT
195 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
196 NORDIX_ARTIFACT_URL=$NORDIX_ARTIFACT_URL
197 EXECUTION_MODE=$EXECUTION_MODE
200 property-file: "$WORKSPACE/change.properties"
201 kill-phase-on: FAILURE
203 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-cloud-master'
204 current-parameters: false
205 node-parameters: false
206 predefined-parameters: |
207 GIT_BASE_SSH=$GIT_BASE_SSH
208 GERRIT_PROJECT=$GERRIT_PROJECT
209 GERRIT_BRANCH=$GERRIT_BRANCH
210 GERRIT_REFSPEC=$GERRIT_REFSPEC
211 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
212 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
213 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
214 PROJECT=$GERRIT_PROJECT
216 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
217 NORDIX_ARTIFACT_URL=$NORDIX_ARTIFACT_URL
218 EXECUTION_MODE=$EXECUTION_MODE
221 kill-phase-on: FAILURE
225 name: 'engine-verify-packaging-{distro}-{stream}'
227 disabled: '{obj:disabled}'
241 - credentials-binding:
242 - username-password-separated:
243 credential-id: 'nordix-cicd-arm-credentials'
244 username: NORDIX_ARM_USERNAME
245 password: NORDIX_ARM_TOKEN
247 - fix-workspace-permissions
251 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
253 refspec: $GERRIT_REFSPEC
258 - 'engine-wait-pkg-mgr-macro'
259 - 'engine-generate-ssh-keypair-macro'
260 - 'engine-packaging-macro'
261 - 'engine-upload-artifact-macro'