Merge "[compass] set timer of colorado jobs"
[releng.git] / jjb / sandbox / sandbox-daily-jobs.yml
1 - project:
2     name: 'sandbox-daily-jobs'
3
4     project: 'sandbox'
5
6     installer: 'sandbox'
7
8 #--------------------------------
9 # BRANCH ANCHORS
10 #--------------------------------
11     master: &master
12         stream: master
13         branch: '{stream}'
14         gs-pathname: ''
15 #--------------------------------
16 # POD, INSTALLER, AND BRANCH MAPPING
17 #--------------------------------
18 #        CI PODs
19 #--------------------------------
20     pod:
21         - baremetal:
22             slave-label: sandbox-baremetal
23             <<: *master
24         - virtual:
25             slave-label: fuel-virtual
26             <<: *master
27 #--------------------------------
28 #        None-CI PODs
29 #--------------------------------
30         - dummy-pod1:
31             slave-label: dummy-pod1
32             <<: *master
33 #--------------------------------
34 #       scenarios
35 #--------------------------------
36     scenario:
37         # HA scenarios
38         - 'os-nosdn-nofeature-ha':
39             auto-trigger-name: 'daily-trigger-disabled'
40         - 'os-odl_l2-nofeature-ha':
41             auto-trigger-name: 'daily-trigger-disabled'
42
43     jobs:
44         - 'sandbox-{scenario}-{pod}-daily-{stream}'
45         - 'sandbox-deploy-{pod}-daily-{stream}'
46         - 'yardstick-sandbox-{pod}-daily-{stream}'
47         - 'functest-sandbox-{pod}-daily-{stream}'
48
49 ########################
50 # job templates
51 ########################
52 - job-template:
53     name: 'sandbox-{scenario}-{pod}-daily-{stream}'
54
55     concurrent: false
56
57     properties:
58         - throttle:
59             enabled: true
60             max-total: 4
61             max-per-node: 1
62             option: 'project'
63         - build-blocker:
64             use-build-blocker: true
65             blocking-jobs:
66                 - 'sandbox-os-.*?-{pod}-daily-{stream}'
67             block-level: 'NODE'
68
69     wrappers:
70         - build-name:
71             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
72
73     triggers:
74         - '{auto-trigger-name}'
75
76     parameters:
77         - project-parameter:
78             project: '{project}'
79         - '{installer}-defaults'
80         - '{slave-label}-defaults'
81         - string:
82             name: DEPLOY_SCENARIO
83             default: '{scenario}'
84
85     builders:
86         - description-setter:
87             description: "Built on $NODE_NAME"
88         - trigger-builds:
89             - project: 'sandbox-deploy-{pod}-daily-{stream}'
90               current-parameters: false
91               predefined-parameters:
92                 DEPLOY_SCENARIO={scenario}
93               same-node: true
94               block: true
95         - trigger-builds:
96             - project: 'yardstick-sandbox-{pod}-daily-{stream}'
97               current-parameters: false
98               predefined-parameters:
99                 DEPLOY_SCENARIO={scenario}
100               same-node: true
101               block: true
102               block-thresholds:
103                 build-step-failure-threshold: 'never'
104                 failure-threshold: 'never'
105                 unstable-threshold: 'FAILURE'
106         - trigger-builds:
107             - project: 'functest-sandbox-{pod}-daily-{stream}'
108               current-parameters: false
109               predefined-parameters:
110                 DEPLOY_SCENARIO={scenario}
111               block: true
112               same-node: true
113               block-thresholds:
114                 build-step-failure-threshold: 'never'
115                 failure-threshold: 'never'
116                 unstable-threshold: 'FAILURE'
117
118 - job-template:
119     name: 'sandbox-deploy-{pod}-daily-{stream}'
120
121     concurrent: true
122
123     properties:
124         - throttle:
125             enabled: true
126             max-total: 4
127             max-per-node: 1
128             option: 'project'
129         - build-blocker:
130             use-build-blocker: true
131             blocking-jobs:
132                 - 'fuel-deploy-{pod}-daily-{stream}'
133                 - 'fuel-deploy-generic-daily-.*'
134             block-level: 'NODE'
135
136     parameters:
137         - project-parameter:
138             project: '{project}'
139         - '{installer}-defaults'
140         - '{slave-label}-defaults'
141         - string:
142             name: DEPLOY_SCENARIO
143             default: 'os-odl_l2-nofeature-ha'
144
145     scm:
146         - git-scm:
147             credentials-id: '{ssh-credentials}'
148             refspec: ''
149             branch: '{branch}'
150
151     wrappers:
152         - build-name:
153             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
154
155     builders:
156         - description-setter:
157             description: "Built on $NODE_NAME"
158         - 'sandbox-deploy-daily-builder'
159
160 - job-template:
161     name: 'yardstick-sandbox-{pod}-daily-{stream}'
162
163     concurrent: true
164
165     properties:
166         - throttle:
167             enabled: true
168             max-per-node: 1
169             option: 'project'
170
171     wrappers:
172         - build-name:
173             name: '$BUILD_NUMBER Suite: $YARDSTICK_SUITE_NAME Scenario: $DEPLOY_SCENARIO'
174         - timeout:
175             timeout: 400
176             abort: true
177
178     parameters:
179         - project-parameter:
180             project: '{project}'
181         - '{installer}-defaults'
182         - '{slave-label}-defaults':
183             installer: '{installer}'
184         - string:
185             name: DEPLOY_SCENARIO
186             default: 'os-odl_l2-nofeature-ha'
187
188     scm:
189         - git-scm:
190             credentials-id: '{ssh-credentials}'
191             refspec: ''
192             branch: '{branch}'
193
194     wrappers:
195         - build-name:
196             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
197
198     builders:
199         - description-setter:
200             description: "Built on $NODE_NAME"
201         - 'yardstick-sandbox-daily-builder'
202
203 - job-template:
204     name: 'functest-sandbox-{pod}-daily-{stream}'
205
206     concurrent: true
207
208     properties:
209         - throttle:
210             enabled: true
211             max-per-node: 1
212             option: 'project'
213
214     wrappers:
215         - build-name:
216             name: '$BUILD_NUMBER Suite: $FUNCTEST_SUITE_NAME Scenario: $DEPLOY_SCENARIO'
217         - timeout:
218             timeout: 400
219             abort: true
220
221     parameters:
222         - project-parameter:
223             project: '{project}'
224         - '{slave-label}-defaults'
225         - '{installer}-defaults'
226         - string:
227             name: DEPLOY_SCENARIO
228             default: 'os-odl_l2-nofeature-ha'
229
230     scm:
231         - git-scm:
232             credentials-id: '{ssh-credentials}'
233             refspec: ''
234             branch: '{branch}'
235
236     wrappers:
237         - build-name:
238             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
239
240     builders:
241         - description-setter:
242             description: "Built on $NODE_NAME"
243         - 'functest-sandbox-daily-builder'
244
245 #####################################
246 # builder macros
247 #####################################
248 - builder:
249     name: 'sandbox-deploy-daily-builder'
250     builders:
251         - shell:
252             !include-raw: ./deploy.sh
253
254 - builder:
255     name: 'functest-sandbox-daily-builder'
256     builders:
257         - shell:
258             !include-raw: ./functest.sh
259
260 - builder:
261     name: 'yardstick-sandbox-daily-builder'
262     builders:
263         - shell:
264             !include-raw: ./yardstick.sh