Disable verify-centos and periodic jobs
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-periodic-engine.yaml
1 ---
2 #
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
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
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.
17 #
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20
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.
24 #
25 # These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
26 # The slaves have
27 #   - Ubuntu1604 as the base distro
28 #   - nested virtualization
29 #   - internet access
30 #   - passwordless sudo
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
34 #
35 # The slaves should not have a cloud infra scenario deployed on them.
36 #--------------------------------------------------------------------------------------
37
38 - project:
39     name: 'cloud-infra-periodic-engine'
40
41     project: 'infra/engine'
42
43     stream:
44       - 'master':
45           branch: '{stream}'
46
47     distro:
48       - ubuntu1804
49       - centos7
50
51     type:
52       - virtual:
53           slave-label: 'vpod-deploy-city'
54           yardstick-dispatcher: 'file'
55           build-trigger: 'H H/3 * * *'
56           disabled: true
57       - baremetal:
58           slave-label: 'baremetal-deploy'
59           yardstick-dispatcher: 'influxdb'
60           build-trigger: '@daily'
61           disabled: true
62
63     phase:
64       - deploy:
65           build-timeout: 60
66       - functest:
67           build-timeout: 120
68       - yardstick:
69           build-timeout: 30
70
71     jobs:
72       - 'cloud-infra-periodic-engine-{distro}-{type}-{stream}'
73       - 'cloud-infra-periodic-{distro}-{phase}-{type}-{stream}'
74
75 - job-template:
76     name: 'cloud-infra-periodic-engine-{distro}-{type}-{stream}'
77
78     project-type: multijob
79
80     disabled: '{obj:disabled}'
81
82     concurrent: true
83
84     parameters:
85       - project-parameters:
86           project: '{project}'
87           branch: '{branch}'
88       - nordix-gerrit-parameters
89       - label:
90           name: SLAVE_LABEL
91           default: '{slave-label}'
92           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
93       - string:
94           name: DISTRO
95           default: '{distro}'
96           description: 'Distribution to use for configuring target nodes (networking etc.)'
97       - string:
98           name: DEPLOY_TYPE
99           default: '{type}'
100           description: 'Type of the deployment'
101       - string:
102           name: USE_PREBUILT_DEPLOYMENT_IMAGE
103           default: 'true'
104           description: 'Use prebuilt deployment image while running as part of CI/CD'
105       - string:
106           name: INSTALLER_TYPE
107           default: 'kubespray'
108           description: 'Installer to use for deploying the scenario'
109       - string:
110           name: DEPLOY_SCENARIO
111           default: 'k8-calico-nofeature'
112           description: 'Scenario to deploy and test'
113       - string:
114           name: TEST_SUITE
115           default: 'smoke'
116           description: 'Test suite to run'
117       - string:
118           name: YARDSTICK_DISPATCHER
119           default: '{yardstick-dispatcher}'
120           description: 'Dispatcher to use for Yardstick reporting'
121       - string:
122           name: CLEANUP
123           default: 'true'
124           description: 'Cleanup leftovers of the previous run'
125
126     properties:
127       - logrotate
128       - build-blocker:
129           use-build-blocker: true
130           blocking-jobs:
131             - 'cloud-infra-verify-engine-.*'
132             - 'cloud-infra-verify-scenario-.*'
133             - 'cloud-infra-periodic-engine-.*'
134             - 'k8-.*'
135           block-level: 'NODE'
136       - throttle:
137           max-per-node: 1
138           max-total: 3
139           option: project
140
141     wrappers:
142       - build-timeout:
143           timeout: 210
144       - fix-workspace-permissions
145
146     scm:
147       - git-scm:
148           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
149           branch: '{branch}'
150           refspec: ''
151           wipe_workspace: true
152           clean_before: false
153
154     triggers:
155       - timed: '{build-trigger}'
156
157     builders:
158       - multijob:
159           name: deploy
160           condition: SUCCESSFUL
161           projects:
162             - name: 'cloud-infra-periodic-{distro}-deploy-{type}-{stream}'
163               current-parameters: true
164               predefined-parameters: |
165                 DISTRO=$DISTRO
166                 DEPLOY_TYPE=$DEPLOY_TYPE
167                 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
168                 INSTALLER_TYPE=$INSTALLER_TYPE
169                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
170                 CLEANUP=$CLEANUP
171               git-revision: true
172               node-parameters: true
173               kill-phase-on: FAILURE
174               abort-all-job: true
175       - multijob:
176           name: functest
177           condition: ALWAYS
178           projects:
179             - name: 'cloud-infra-periodic-{distro}-functest-{type}-{stream}'
180               current-parameters: true
181               predefined-parameters: |
182                 DISTRO=$DISTRO
183                 DEPLOY_TYPE=$DEPLOY_TYPE
184                 INSTALLER_TYPE=$INSTALLER_TYPE
185                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
186                 TEST_SUITE=$TEST_SUITE
187                 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
188                 CLEANUP=$CLEANUP
189               node-parameters: true
190               kill-phase-on: NEVER
191               abort-all-job: false
192       - multijob:
193           name: yardstick
194           condition: ALWAYS
195           projects:
196             - name: 'cloud-infra-periodic-{distro}-yardstick-{type}-{stream}'
197               current-parameters: true
198               predefined-parameters: |
199                 DISTRO=$DISTRO
200                 DEPLOY_TYPE=$DEPLOY_TYPE
201                 INSTALLER_TYPE=$INSTALLER_TYPE
202                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
203                 TEST_SUITE=$TEST_SUITE
204                 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
205                 CLEANUP=$CLEANUP
206               node-parameters: true
207               kill-phase-on: NEVER
208               abort-all-job: false
209
210 - job-template:
211     name: 'cloud-infra-periodic-{distro}-{phase}-{type}-{stream}'
212
213     disabled: false
214
215     concurrent: true
216
217     properties:
218       - logrotate
219
220     parameters:
221       - string:
222           name: PROJECT
223           default: $GERRIT_PROJECT
224       - string:
225           name: DISTRO
226           default: 'ubuntu1804'
227           description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
228       - string:
229           name: DEPLOY_TYPE
230           default: 'virtual'
231           description: 'Type of the deployment. Overriden by upstream job.'
232       - string:
233           name: USE_PREBUILT_DEPLOYMENT_IMAGE
234           default: 'false'
235           description: 'Use prebuilt deployment image while running as part of CI/CD'
236       - string:
237           name: ENGINE_ANSIBLE_PARAMS
238           default: ' -v '
239           description: 'Extra paramters that can be added when run the play books.'
240       - string:
241           name: INSTALLER_TYPE
242           default: 'kubespray'
243           description: 'Installer to use for deploying the scenario'
244       - string:
245           name: DEPLOY_SCENARIO
246           default: 'k8-calico-nofeature'
247           description: 'Scenario to deploy and test'
248       - string:
249           name: TEST_FW
250           default: '{phase}'
251           description: 'Test framework to use'
252       - string:
253           name: TEST_SUITE
254           default: 'smoke'
255           description: 'Test suite to run'
256       - string:
257           name: TEST_REPO_URL
258           default: 'https://gerrit.nordix.org/infra/test.git'
259           description: 'URL to Nordix Cloud Infra test repository'
260       - string:
261           name: YARDSTICK_DISPATCHER
262           default: 'file'
263           description: 'Dispatcher to use for Yardstick reporting'
264       - string:
265           name: CLEANUP
266           default: 'false'
267
268     wrappers:
269       - build-timeout:
270           timeout: '{build-timeout}'
271       - fix-workspace-permissions
272
273     scm:
274       - git-scm:
275           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
276           branch: '{branch}'
277           refspec: ''
278           wipe_workspace: true
279           clean_before: false
280
281     builders:
282       - 'cloud-infra-{phase}-macro'
283
284 # vim: set ts=2 sw=2 expandtab: