[fuel, armband] Disable Gambia jobs
[releng.git] / jjb / fuel / fuel-verify-jobs.yaml
1 ---
2 - project:
3     name: 'fuel-verify-jobs'
4
5     project: 'fuel'
6
7     installer: 'fuel'
8     #####################################
9     # branch definitions
10     #####################################
11     stream:
12       - master:
13           branch: '{stream}'
14           gs-pathname: ''
15           disabled: false
16           functest_docker_tag: hunter
17       - gambia:
18           branch: 'stable/{stream}'
19           gs-pathname: '/{stream}'
20           disabled: true
21           functest_docker_tag: '{stream}'
22     #####################################
23     # cluster architectures
24     #####################################
25     # Note: arm64 was removed since it was basically a no-op
26     arch_tag:
27       - 'amd64':
28           slave-label: 'fuel'
29           functest-suite-label: 'fuel'
30     #####################################
31     # cluster types
32     #####################################
33     type:
34       - 'virtual'
35       - 'baremetal'
36     #####################################
37     # patch verification phases
38     #####################################
39     phase:
40       - 'docker-build'
41       - 'deploy'
42     #####################################
43     # jobs
44     #####################################
45     jobs:
46       - 'fuel-verify-{type}-{arch_tag}-{stream}'
47       - 'fuel-verify-{phase}-{type}-{arch_tag}-{stream}'
48 #####################################
49 # job templates
50 #####################################
51 - job-template:
52     name: 'fuel-verify-{type}-{arch_tag}-{stream}'
53
54     project-type: multijob
55
56     disabled: '{obj:disabled}'
57
58     concurrent: true
59
60     properties:
61       - logrotate-default
62       - throttle:
63           enabled: true
64           max-total: 4
65           option: 'project'
66       - build-blocker:
67           use-build-blocker: true
68           blocking-jobs:
69             - 'fuel-os-.*?-daily-.*'
70             - 'fuel-verify-.*'
71           blocking-level: 'NODE'
72
73     scm:
74       - git-scm-gerrit
75
76     wrappers:
77       - ssh-agent-wrapper
78       - timeout:
79           timeout: 360
80           fail: true
81
82     triggers:
83       - 'fuel-verify-{type}-{arch_tag}-trigger':
84           project: '{project}'
85           branch: '{branch}'
86
87     parameters:
88       - project-parameter:
89           project: '{project}'
90           branch: '{branch}'
91       - '{slave-label}-{type}-defaults':
92           installer: '{installer}'
93       - '{installer}-defaults':
94           gs-pathname: '{gs-pathname}'
95
96     builders:
97       - 'fuel-verify-set-scenario-macro'
98       - inject:
99           properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/scenario.properties"
100       - description-setter:
101           description: "Scenario: $DEPLOY_SCENARIO | Node: $NODE_NAME"
102       - multijob:
103           name: docker-build
104           condition: SUCCESSFUL
105           projects:
106             - name: 'fuel-verify-docker-build-{type}-{arch_tag}-{stream}'
107               current-parameters: false
108               predefined-parameters: |
109                 BRANCH=$BRANCH
110                 GERRIT_REFSPEC=$GERRIT_REFSPEC
111                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
112                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
113               node-parameters: true
114               kill-phase-on: FAILURE
115               abort-all-job: true
116
117       - multijob:
118           name: deploy
119           condition: SUCCESSFUL
120           projects:
121             - name: 'fuel-verify-deploy-{type}-{arch_tag}-{stream}'
122               current-parameters: false
123               predefined-parameters: |
124                 MCP_DOCKER_TAG={arch_tag}-verify
125                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
126                 BRANCH=$BRANCH
127                 GERRIT_REFSPEC=$GERRIT_REFSPEC
128                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
129                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
130               node-parameters: true
131               kill-phase-on: FAILURE
132               abort-all-job: true
133
134       - multijob:
135           name: smoke-test
136           condition: SUCCESSFUL
137           projects:
138             # Use Functest job definition from jjb/functest/functest-daily-jobs
139             - name: 'functest-{functest-suite-label}-{type}-suite-{stream}'
140               current-parameters: false
141               predefined-parameters: |
142                 FUNCTEST_MODE=tier
143                 FUNCTEST_TIER=healthcheck
144                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
145                 BRANCH=$BRANCH
146                 GERRIT_REFSPEC=$GERRIT_REFSPEC
147                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
148                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
149                 DOCKER_TAG={functest_docker_tag}
150               node-parameters: true
151               enable-condition: "def m = ! ('$NODE_LABELS' =~ /armband-virtual/)"
152               kill-phase-on: NEVER
153               abort-all-job: true
154
155 - job-template:
156     name: 'fuel-verify-{phase}-{type}-{arch_tag}-{stream}'
157
158     disabled: '{obj:disabled}'
159
160     concurrent: true
161
162     properties:
163       - logrotate-default
164       - throttle:
165           enabled: true
166           max-total: 2
167           max-per-node: 1
168           option: 'project'
169       - build-blocker:
170           use-build-blocker: true
171           blocking-jobs:
172             - 'fuel-verify-docker-build-.*'
173             - 'fuel-verify-deploy-.*'
174           blocking-level: 'NODE'
175
176     scm:
177       - git-scm-gerrit
178
179     wrappers:
180       - ssh-agent-wrapper
181       - timeout:
182           timeout: 360
183           fail: true
184
185     parameters:
186       - project-parameter:
187           project: '{project}'
188           branch: '{branch}'
189       - '{slave-label}-{type}-defaults':
190           installer: '{installer}'
191       - '{installer}-defaults':
192           gs-pathname: '{gs-pathname}'
193
194     builders:
195       - description-setter:
196           description: "Built on $NODE_NAME"
197       - '{project}-verify-{phase}-macro'
198 ########################
199 # trigger macros
200 ########################
201 - trigger:
202     name: 'fuel-verify-virtual-amd64-trigger'
203     triggers:
204       - gerrit: &fuel_verify_virtual_amd64_trigger
205           server-name: 'gerrit.opnfv.org'
206           trigger-on:
207             - patchset-created-event:
208                 exclude-drafts: 'false'
209                 exclude-trivial-rebase: 'false'
210                 exclude-no-code-change: 'false'
211             - draft-published-event
212             - comment-added-contains-event:
213                 comment-contains-value: '(recheck|reverify)(\s|$|:\s*[-\w]+-noha)'
214           projects:
215             - project-compare-type: 'ANT'
216               project-pattern: '{project}'
217               branches:
218                 - branch-compare-type: 'ANT'
219                   branch-pattern: '**/{branch}'
220               file-paths:
221                 - compare-type: ANT
222                   pattern: 'ci/**'
223                 - compare-type: ANT
224                   pattern: 'mcp/**'
225               disable-strict-forbidden-file-verification: 'true'
226               forbidden-file-paths:
227                 - compare-type: ANT
228                   pattern: 'docs/**'
229           readable-message: true
230 - trigger:
231     name: 'fuel-verify-virtual-arm64-trigger'
232     triggers:
233       - gerrit:
234           <<: *fuel_verify_virtual_amd64_trigger
235 - trigger:
236     name: 'fuel-verify-baremetal-amd64-trigger'
237     triggers:
238       - gerrit: &fuel_verify_baremetal_amd64_trigger
239           <<: *fuel_verify_virtual_amd64_trigger
240           trigger-on:
241             - comment-added-contains-event:
242                 comment-contains-value: '(recheck|reverify):\s*[-\w]+-ha'
243 - trigger:
244     name: 'fuel-verify-baremetal-arm64-trigger'
245     triggers:
246       - gerrit:
247           <<: *fuel_verify_baremetal_amd64_trigger
248           skip-vote:
249             successful: true
250             failed: true
251             unstable: true
252             notbuilt: true
253 #####################################
254 # builder macros
255 #####################################
256 - builder:
257     name: 'fuel-verify-set-scenario-macro'
258     builders:
259       - shell:
260           !include-raw: ./fuel-set-scenario.sh
261 - builder:
262     name: 'fuel-verify-deploy-macro'
263     builders:
264       - shell:
265           !include-raw: ./fuel-deploy.sh
266 - builder:
267     name: 'fuel-verify-docker-build-macro'
268     builders:
269       - shell: |
270           #!/bin/bash -ex
271           sudo -E ./ci/build.sh 'verify' ''