Merge "qtip: adapt job template for different streams"
[releng.git] / jjb / fuel / fuel-verify-jobs.yml
1 - project:
2     name: 'fuel-verify-jobs'
3
4     project: 'fuel'
5
6     installer: 'fuel'
7 #####################################
8 # branch definitions
9 #####################################
10     stream:
11         - master:
12             branch: '{stream}'
13             gs-pathname: ''
14             disabled: false
15         - danube:
16             branch: 'stable/{stream}'
17             gs-pathname: '/{stream}'
18             disabled: false
19 #####################################
20 # patch verification phases
21 #####################################
22     phase:
23         - 'basic':
24             slave-label: 'opnfv-build-ubuntu'
25         - 'build':
26             slave-label: 'opnfv-build-ubuntu'
27         - 'deploy-virtual':
28             slave-label: 'opnfv-build-ubuntu'
29         - 'smoke-test':
30             slave-label: 'opnfv-build-ubuntu'
31 #####################################
32 # jobs
33 #####################################
34     jobs:
35         - 'fuel-verify-{stream}'
36         - 'fuel-verify-{phase}-{stream}'
37 #####################################
38 # job templates
39 #####################################
40 - job-template:
41     name: 'fuel-verify-{stream}'
42
43     project-type: multijob
44
45     disabled: '{obj:disabled}'
46
47     concurrent: true
48
49     properties:
50         - logrotate-default
51         - throttle:
52             enabled: true
53             max-total: 4
54             option: 'project'
55
56     scm:
57         - git-scm-gerrit
58
59     wrappers:
60         - ssh-agent-wrapper
61         - timeout:
62             timeout: 360
63             fail: true
64
65     triggers:
66         - gerrit:
67             server-name: 'gerrit.opnfv.org'
68             trigger-on:
69                 - patchset-created-event:
70                     exclude-drafts: 'false'
71                     exclude-trivial-rebase: 'false'
72                     exclude-no-code-change: 'false'
73                 - draft-published-event
74                 - comment-added-contains-event:
75                     comment-contains-value: 'recheck'
76                 - comment-added-contains-event:
77                     comment-contains-value: 'reverify'
78             projects:
79               - project-compare-type: 'ANT'
80                 project-pattern: '{project}'
81                 branches:
82                   - branch-compare-type: 'ANT'
83                     branch-pattern: '**/{branch}'
84                 file-paths:
85                   - compare-type: ANT
86                     pattern: 'ci/**'
87                   - compare-type: ANT
88                     pattern: 'build/**'
89                   - compare-type: ANT
90                     pattern: 'deploy/**'
91                 disable-strict-forbidden-file-verification: 'true'
92                 forbidden-file-paths:
93                   - compare-type: ANT
94                     pattern: 'docs/**'
95             readable-message: true
96
97     parameters:
98         - project-parameter:
99             project: '{project}'
100             branch: '{branch}'
101         - 'opnfv-build-ubuntu-defaults'
102         - 'fuel-verify-defaults':
103             gs-pathname: '{gs-pathname}'
104
105     builders:
106         - description-setter:
107             description: "Built on $NODE_NAME"
108         - multijob:
109             name: basic
110             condition: SUCCESSFUL
111             projects:
112                 - name: 'fuel-verify-basic-{stream}'
113                   current-parameters: false
114                   predefined-parameters: |
115                     BRANCH=$BRANCH
116                     GERRIT_REFSPEC=$GERRIT_REFSPEC
117                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
118                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
119                   node-parameters: false
120                   kill-phase-on: FAILURE
121                   abort-all-job: true
122         - multijob:
123             name: build
124             condition: SUCCESSFUL
125             projects:
126                 - name: 'fuel-verify-build-{stream}'
127                   current-parameters: false
128                   predefined-parameters: |
129                     BRANCH=$BRANCH
130                     GERRIT_REFSPEC=$GERRIT_REFSPEC
131                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
132                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
133                   node-parameters: false
134                   kill-phase-on: FAILURE
135                   abort-all-job: true
136         - multijob:
137             name: deploy-virtual
138             condition: SUCCESSFUL
139             projects:
140                 - name: 'fuel-verify-deploy-virtual-{stream}'
141                   current-parameters: false
142                   predefined-parameters: |
143                     BRANCH=$BRANCH
144                     GERRIT_REFSPEC=$GERRIT_REFSPEC
145                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
146                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
147                   node-parameters: false
148                   kill-phase-on: FAILURE
149                   abort-all-job: true
150         - multijob:
151             name: smoke-test
152             condition: SUCCESSFUL
153             projects:
154                 - name: 'fuel-verify-smoke-test-{stream}'
155                   current-parameters: false
156                   predefined-parameters: |
157                     BRANCH=$BRANCH
158                     GERRIT_REFSPEC=$GERRIT_REFSPEC
159                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
160                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
161                   node-parameters: false
162                   kill-phase-on: FAILURE
163                   abort-all-job: true
164
165 - job-template:
166     name: 'fuel-verify-{phase}-{stream}'
167
168     disabled: '{obj:disabled}'
169
170     concurrent: true
171
172     properties:
173         - logrotate-default
174         - throttle:
175             enabled: true
176             max-total: 6
177             option: 'project'
178         - build-blocker:
179             use-build-blocker: true
180             blocking-jobs:
181                 - 'fuel-verify-deploy-.*'
182                 - 'fuel-verify-test-.*'
183             block-level: 'NODE'
184
185     scm:
186         - git-scm-gerrit
187
188     wrappers:
189         - ssh-agent-wrapper
190         - timeout:
191             timeout: 360
192             fail: true
193     parameters:
194         - project-parameter:
195             project: '{project}'
196             branch: '{branch}'
197         - '{slave-label}-defaults'
198         - '{installer}-defaults'
199         - 'fuel-verify-defaults':
200             gs-pathname: '{gs-pathname}'
201
202     builders:
203         - description-setter:
204             description: "Built on $NODE_NAME"
205         - '{project}-verify-{phase}-macro'
206 #####################################
207 # builder macros
208 #####################################
209 - builder:
210     name: 'fuel-verify-basic-macro'
211     builders:
212         - shell: |
213             #!/bin/bash
214
215             echo "Not activated!"
216
217 - builder:
218     name: 'fuel-verify-build-macro'
219     builders:
220         - shell:
221             !include-raw: ./fuel-build.sh
222         - shell:
223             !include-raw: ./fuel-workspace-cleanup.sh
224
225 - builder:
226     name: 'fuel-verify-deploy-virtual-macro'
227     builders:
228         - shell: |
229             #!/bin/bash
230
231             echo "Not activated!"
232
233 - builder:
234     name: 'fuel-verify-smoke-test-macro'
235     builders:
236         - shell: |
237             #!/bin/bash
238
239             echo "Not activated!"
240 #####################################
241 # parameter macros
242 #####################################
243 - parameter:
244     name: 'fuel-verify-defaults'
245     parameters:
246         - string:
247             name: BUILD_DIRECTORY
248             default: $WORKSPACE/build_output
249             description: "Directory where the build artifact will be located upon the completion of the build."
250         - string:
251             name: CACHE_DIRECTORY
252             default: $HOME/opnfv/cache/$INSTALLER_TYPE
253             description: "Directory where the cache to be used during the build is located."
254         - string:
255             name: GS_URL
256             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
257             description: "URL to Google Storage."