[compass] try concurrent of daily ci jobs, don't restrict the threahold
[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     node: huawei-build
62
63     concurrent: false
64
65     properties:
66         - throttle:
67             enabled: true
68             max-total: 0
69             max-per-node: 1
70
71     wrappers:
72         - build-name:
73             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
74         - timeout:
75             timeout: 360
76             fail: true
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-total: 0
135             max-per-node: 1
136         - build-blocker:
137             use-build-blocker: true
138             blocking-jobs:
139                 - 'compass-deploy-{pod}-daily-{stream}'
140
141     wrappers:
142         - build-name:
143             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
144
145     parameters:
146         - project-parameter:
147             project: '{project}'
148         - compass-ci-parameter:
149             installer: '{installer}'
150             gs-pathname: '{gs-pathname}'
151         - '{pod}-defaults'
152         - '{installer}-defaults'
153
154     scm:
155         - git-scm:
156             credentials-id: '{ssh-credentials}'
157             refspec: ''
158             branch: '{branch}'
159
160     wrappers:
161         - build-name:
162             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
163
164
165     builders:
166         - shell:
167             !include-raw: ./compass-workspace-precleanup.sh
168         - shell:
169             !include-raw: ./compass-download-artifact.sh
170         - shell:
171             !include-raw: ./compass-deploy.sh
172
173     publishers:
174         - archive:
175             artifacts: 'ansible.log'
176             allow-empty: 'true'
177             fingerprint: true
178
179 ########################
180 # parameter macros
181 ########################
182 - parameter:
183     name: compass-ci-parameter
184     parameters:
185         - string:
186             name: BUILD_DIRECTORY
187             default: $WORKSPACE/build_output
188             description: "Directory where the build artifact will be located upon the completion of the build."
189         - string:
190             name: GS_URL
191             default: '$GS_BASE{gs-pathname}'
192             description: "URL to Google Storage."
193         - choice:
194             name: COMPASS_OPENSTACK_VERSION
195             choices:
196                 - 'liberty'
197                 - 'juno'
198         - choice:
199             name: COMPASS_OS_VERSION
200             choices:
201                 - 'trusty'
202                 - 'centos7'
203
204 ########################
205 # trigger macros
206 ########################
207 - trigger:
208     name: 'compass-os-nosdn-nofeature-ha-huawei-us-deploy-bare-1-trigger'
209     triggers:
210         - timed: '0 3 * * * '
211 - trigger:
212     name: 'compass-os-odl_l2-nofeature-ha-huawei-us-deploy-bare-1-trigger'
213     triggers:
214         - timed: '0 20 * * *'
215 - trigger:
216     name: 'compass-os-onos-nofeature-ha-huawei-us-deploy-bare-1-trigger'
217     triggers:
218         - timed: '0 15 * * *'
219 - trigger:
220     name: 'compass-os-ocl-nofeature-ha-huawei-us-deploy-bare-1-trigger'
221     triggers:
222         - timed: ''
223 - trigger:
224     name: 'compass-os-nosdn-nofeature-ha-intel-pod8-trigger'
225     triggers:
226         - timed: ''
227 - trigger:
228     name: 'compass-os-odl_l2-nofeature-ha-intel-pod8-trigger'
229     triggers:
230         - timed: ''
231 - trigger:
232     name: 'compass-os-onos-nofeature-ha-intel-pod8-trigger'
233     triggers:
234         - timed: ''
235 - trigger:
236     name: 'compass-os-ocl-nofeature-ha-intel-pod8-trigger'
237     triggers:
238         - timed: ''
239 - trigger:
240     name: 'compass-os-nosdn-nofeature-ha-huawei-virtual-trigger'
241     triggers:
242         - timed: ''
243 - trigger:
244     name: 'compass-os-odl_l2-nofeature-ha-huawei-virtual-trigger'
245     triggers:
246         - timed: '0 16 * * *'
247 - trigger:
248     name: 'compass-os-onos-nofeature-ha-huawei-virtual-trigger'
249     triggers:
250         - timed: '0 16 * * *'
251 - trigger:
252     name: 'compass-os-ocl-nofeature-ha-huawei-virtual-trigger'
253     triggers:
254         - timed: ''