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=========================================================
21 #--------------------------------------------------------------------------------------
22 # The jobs declared in this JJB configuration file are used for verifying cloud-infra
23 # engine from the tip of the master branch periodically to check the stability of it.
25 # These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
27 # - Ubuntu1604 as the base distro
28 # - nested virtualization
31 # - 16 CPUs/32GB RAM/200 GB Disk
32 # - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
33 # gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
35 # The slaves should not have a cloud infra scenario deployed on them.
36 #--------------------------------------------------------------------------------------
39 name: 'cloud-infra-periodic-engine'
41 project: 'infra/engine'
51 distribution: 'ubuntu18'
52 ipa_dib_os_element: 'coreos'
53 dib_os_release: 'bionic'
54 dib_os_element: 'ubuntu-minimal'
57 distribution: 'centos7'
58 ipa_dib_os_element: 'coreos'
60 dib_os_element: 'centos-minimal'
70 - 'cloud-infra-periodic-engine-{os}-{type}-{stream}'
71 - 'cloud-infra-periodic-{os}-{phase}-{type}-{stream}'
74 name: 'cloud-infra-periodic-engine-{os}-{type}-{stream}'
76 project-type: multijob
78 disabled: '{obj:disabled}'
86 - nordix-gerrit-parameters
89 default: 'vpod-deploy-{os}'
90 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
93 default: '{distribution}'
94 description: 'Distribution to use for configuring target nodes (networking etc.)'
96 name: USE_PREBUILT_DEPLOYMENT_IMAGE
98 description: 'Use prebuilt deployment image while running as part of CI/CD'
100 name: IPA_DIB_OS_ELEMENT
101 default: '{ipa_dib_os_element}'
102 description: 'DIB OS Element to use for building the ramdisk image'
105 default: '{dib_os_release}'
106 description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
109 default: '{dib_os_element}'
110 description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
114 description: 'Cleanup leftovers of the previous run'
119 use-build-blocker: true
121 - 'cloud-infra-verify-engine-{os}-.*'
122 - 'cloud-infra-periodic-engine-{os}-.*'
123 - 'cloud-infra-os-.*'
124 - 'cloud-infra-k8-.*'
134 - fix-workspace-permissions
140 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
145 - timed: 'H H/2 * * *'
150 condition: SUCCESSFUL
152 - name: 'cloud-infra-periodic-{os}-deploy-{type}-{stream}'
153 current-parameters: true
154 predefined-parameters: |
155 DISTRIBUTION=$DISTRIBUTION
156 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
157 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
158 DIB_OS_RELEASE=$DIB_OS_RELEASE
159 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
162 node-parameters: true
163 kill-phase-on: FAILURE
167 condition: SUCCESSFUL
169 - name: 'cloud-infra-periodic-{os}-test-{type}-{stream}'
170 current-parameters: true
171 predefined-parameters: |
172 DISTRIBUTION=$DISTRIBUTION
173 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
174 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
175 DIB_OS_RELEASE=$DIB_OS_RELEASE
176 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
178 node-parameters: true
183 name: 'cloud-infra-periodic-{os}-{phase}-{type}-{stream}'
195 default: $GERRIT_PROJECT
199 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
201 name: USE_PREBUILT_DEPLOYMENT_IMAGE
203 description: 'Use prebuilt deployment image while running as part of CI/CD'
205 name: IPA_DIB_OS_ELEMENT
207 description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
211 description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
214 default: 'ubuntu-minimal'
215 description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
218 default: 'https://gerrit.nordix.org/infra/test.git'
219 description: 'URL to Nordix Cloud Infra test repository'
227 - fix-workspace-permissions
231 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
236 - 'cloud-infra-periodic-{phase}-macro'
238 # -------------------------------
240 # -------------------------------
243 name: 'cloud-infra-periodic-deploy-macro'
246 !include-raw: ./wait-for-pkg-manager.sh
248 !include-raw: ./cloud-infra-deploy.sh
251 name: 'cloud-infra-periodic-test-macro'
254 !include-raw: ./prepare-for-test.sh
256 !include-raw: ./cloud-infra-test.sh
258 # vim: set ts=2 sw=2 expandtab: