Merge "[Dovetail] Changing the path of the ssh key in pod.yaml for yardstick"
[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       - fraser:
17           branch: 'stable/{stream}'
18           gs-pathname: '/{stream}'
19           disabled: false
20     #####################################
21     # patch verification phases
22     #####################################
23     phase:
24       - 'deploy-virtual':
25           slave-label: 'fuel-virtual'
26     #####################################
27     # jobs
28     #####################################
29     jobs:
30       - 'fuel-verify-{stream}'
31       - 'fuel-verify-{phase}-{stream}'
32 #####################################
33 # job templates
34 #####################################
35 - job-template:
36     name: 'fuel-verify-{stream}'
37
38     project-type: multijob
39
40     disabled: '{obj:disabled}'
41
42     concurrent: true
43
44     properties:
45       - logrotate-default
46       - throttle:
47           enabled: true
48           max-total: 4
49           option: 'project'
50       - build-blocker:
51           use-build-blocker: true
52           blocking-jobs:
53             - 'fuel-os-.*?-virtual-daily-.*'
54             - 'fuel-verify-.*'
55           block-level: 'NODE'
56
57     scm:
58       - git-scm-gerrit
59
60     wrappers:
61       - ssh-agent-wrapper
62       - timeout:
63           timeout: 360
64           fail: true
65
66     triggers:
67       - gerrit:
68           server-name: 'gerrit.opnfv.org'
69           trigger-on:
70             - patchset-created-event:
71                 exclude-drafts: 'false'
72                 exclude-trivial-rebase: 'false'
73                 exclude-no-code-change: 'false'
74             - draft-published-event
75             - comment-added-contains-event:
76                 comment-contains-value: 'recheck'
77             - comment-added-contains-event:
78                 comment-contains-value: 'reverify'
79           projects:
80             - project-compare-type: 'ANT'
81               project-pattern: '{project}'
82               branches:
83                 - branch-compare-type: 'ANT'
84                   branch-pattern: '**/{branch}'
85               file-paths:
86                 - compare-type: ANT
87                   pattern: 'ci/**'
88                 - compare-type: ANT
89                   pattern: 'mcp/**'
90               disable-strict-forbidden-file-verification: 'true'
91               forbidden-file-paths:
92                 - compare-type: ANT
93                   pattern: 'docs/**'
94           readable-message: true
95
96     parameters:
97       - project-parameter:
98           project: '{project}'
99           branch: '{branch}'
100       - 'fuel-virtual-defaults':
101           installer: '{installer}'
102       - '{installer}-defaults':
103           gs-pathname: '{gs-pathname}'
104       - string:
105           name: DEPLOY_SCENARIO
106           default: 'os-nosdn-nofeature-ha'
107
108     builders:
109       - description-setter:
110           description: "Built on $NODE_NAME"
111       - multijob:
112           name: deploy-virtual
113           condition: SUCCESSFUL
114           projects:
115             - name: 'fuel-verify-deploy-virtual-{stream}'
116               current-parameters: false
117               predefined-parameters: |
118                 BRANCH=$BRANCH
119                 GERRIT_REFSPEC=$GERRIT_REFSPEC
120                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
121                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
122               node-parameters: false
123               kill-phase-on: FAILURE
124               abort-all-job: true
125
126       - multijob:
127           name: smoke-test
128           condition: SUCCESSFUL
129           projects:
130             # Use Functest job definition from jjb/functest/functest-daily-jobs
131             - name: 'functest-fuel-virtual-suite-{stream}'
132               current-parameters: false
133               predefined-parameters: |
134                 FUNCTEST_MODE=tier
135                 FUNCTEST_TIER=healthcheck
136                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
137                 BRANCH=$BRANCH
138                 GERRIT_REFSPEC=$GERRIT_REFSPEC
139                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
140                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
141               node-parameters: true
142               kill-phase-on: NEVER
143               abort-all-job: true
144             - name: 'functest-fuel-virtual-suite-{stream}'
145               current-parameters: false
146               predefined-parameters: |
147                 FUNCTEST_MODE=testcase
148                 FUNCTEST_SUITE_NAME=vping_ssh
149                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
150                 BRANCH=$BRANCH
151                 GERRIT_REFSPEC=$GERRIT_REFSPEC
152                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
153                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
154               node-parameters: true
155               kill-phase-on: NEVER
156               abort-all-job: true
157
158 - job-template:
159     name: 'fuel-verify-{phase}-{stream}'
160
161     disabled: '{obj:disabled}'
162
163     concurrent: true
164
165     properties:
166       - logrotate-default
167       - throttle:
168           enabled: true
169           max-total: 2
170           max-per-node: 1
171           option: 'project'
172       - build-blocker:
173           use-build-blocker: true
174           blocking-jobs:
175             - 'fuel-verify-deploy-.*'
176           block-level: 'NODE'
177
178     scm:
179       - git-scm-gerrit
180
181     wrappers:
182       - ssh-agent-wrapper
183       - timeout:
184           timeout: 360
185           fail: true
186
187     parameters:
188       - project-parameter:
189           project: '{project}'
190           branch: '{branch}'
191       - '{slave-label}-defaults'
192       - 'fuel-virtual-defaults':
193           installer: '{installer}'
194       - '{installer}-defaults':
195           gs-pathname: '{gs-pathname}'
196
197     builders:
198       - description-setter:
199           description: "Built on $NODE_NAME"
200       - '{project}-verify-{phase}-macro'
201 #####################################
202 # builder macros
203 #####################################
204 - builder:
205     name: 'fuel-verify-deploy-virtual-macro'
206     builders:
207       - shell:
208           !include-raw: ./fuel-deploy.sh