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