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