3 # ============LICENSE_START=======================================================
4 # Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
22 name: 'cloud-infra-verify'
24 project: 'infra/engine'
34 distribution: 'ubuntu16'
35 ipa_dib_os_element: 'fedora'
36 dib_os_release: 'xenial'
37 dib_os_element: 'ubuntu-minimal'
40 distribution: 'ubuntu18'
41 ipa_dib_os_element: 'fedora'
42 dib_os_release: 'bionic'
43 dib_os_element: 'ubuntu-minimal'
46 distribution: 'centos7'
47 ipa_dib_os_element: 'fedora'
49 dib_os_element: 'centos-minimal'
59 - 'cloud-infra-verify-{os}-{type}-{stream}'
60 - 'cloud-infra-verify-{os}-{phase}-{type}-{stream}'
63 name: 'cloud-infra-verify-{os}-{type}-{stream}'
65 project-type: multijob
67 disabled: '{obj:disabled}'
75 - nordix-gerrit-parameters
78 default: 'vpod-deploy-{os}'
79 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
82 default: '{distribution}'
83 description: 'Distribution to use for configuring target nodes (networking etc.)'
85 name: IPA_DIB_OS_ELEMENT
86 default: '{ipa_dib_os_element}'
87 description: 'DIB OS Element to use for building the ramdisk image'
90 default: '{dib_os_release}'
91 description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
94 default: '{dib_os_element}'
95 description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
99 description: 'Cleanup leftovers of the previous run'
104 use-build-blocker: true
106 - 'cloud-infra-verify-{os}-.*'
107 - 'cloud-infra-os-.*'
108 - 'cloud-infra-k8-.*'
118 - fix-workspace-permissions
124 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
126 refspec: $GERRIT_REFSPEC
129 - nordix-gerrit-trigger-patchset-created:
130 project: 'infra\/engine|infra\/swconfig'
137 condition: SUCCESSFUL
139 - name: 'cloud-infra-verify-{os}-deploy-{type}-{stream}'
140 current-parameters: true
141 predefined-parameters: |
142 DISTRIBUTION=$DISTRIBUTION
143 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
144 DIB_OS_RELEASE=$DIB_OS_RELEASE
145 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
147 GERRIT_PROJECT=$GERRIT_PROJECT
148 GERRIT_BRANCH=$GERRIT_BRANCH
149 GERRIT_REFSPEC=$GERRIT_REFSPEC
150 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
151 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
152 node-parameters: true
153 kill-phase-on: FAILURE
157 condition: SUCCESSFUL
159 - name: 'cloud-infra-verify-{os}-test-{type}-{stream}'
160 current-parameters: true
161 predefined-parameters: |
162 DISTRIBUTION=$DISTRIBUTION
163 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
164 DIB_OS_RELEASE=$DIB_OS_RELEASE
165 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
167 GERRIT_PROJECT=$GERRIT_PROJECT
168 GERRIT_BRANCH=$GERRIT_BRANCH
169 GERRIT_REFSPEC=$GERRIT_REFSPEC
170 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
171 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
172 node-parameters: true
177 name: 'cloud-infra-verify-{os}-{phase}-{type}-{stream}'
189 default: $GERRIT_PROJECT
193 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
195 name: IPA_DIB_OS_ELEMENT
197 description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
201 description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
204 default: 'ubuntu-minimal'
205 description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
213 - fix-workspace-permissions
217 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
219 refspec: $GERRIT_REFSPEC
222 - 'cloud-infra-verify-{phase}-macro'
224 # -------------------------------
226 # -------------------------------
229 name: 'cloud-infra-verify-deploy-macro'
234 # it takes some time before the OpenStack slave becomes fully operational
235 # so we give it some more time before doing anything
238 !include-raw: ./cloud-infra-deploy.sh
241 name: 'cloud-infra-verify-test-macro'
244 !include-raw: ./cloud-infra-test.sh
246 # vim: set ts=2 sw=2 expandtab: