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