Merge "Add jjob Functest timeout as input parameter, default 210"
[releng.git] / jjb / joid / joid-ci-jobs.yml
1 ########################
2 # Job configuration for joid
3 ########################
4 - project:
5
6     name: 'joid'
7
8     project: '{name}'
9
10     installer: '{name}'
11
12 #--------------------------------
13 # BRANCH ANCHORS
14 #--------------------------------
15     master: &master
16         stream: master
17         branch: '{stream}'
18         gs-pathname: ''
19     brahmaputra: &brahmaputra
20         stream: brahmaputra
21         branch: 'stable/{stream}'
22         gs-pathname: '/{stream}'
23 #--------------------------------
24 # POD, INSTALLER, AND BRANCH MAPPING
25 #--------------------------------
26 #        brahmaputra
27 #--------------------------------
28     pod:
29         - intel-pod5:
30             <<: *brahmaputra
31         - virtual:
32             <<: *brahmaputra
33 #--------------------------------
34 #           master
35 #--------------------------------
36         - intel-pod6:
37             <<: *master
38         - orange-pod2:
39             <<: *master
40         - juniper-pod1:
41             <<: *master
42         - virtual:
43             <<: *master
44 #--------------------------------
45 # new scenario descriptions
46     scenario:
47         - 'os-nosdn-nofeature-noha':
48             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
49         - 'os-nosdn-nofeature-ha':
50             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
51         - 'os-odl_l2-nofeature-ha':
52             auto-trigger-name: 'joid-{scenario}-{pod}-trigger'
53         - 'os-odl_l2-nofeature-noha':
54             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
55         - 'os-onos-nofeature-ha':
56             auto-trigger-name: 'joid-{scenario}-{pod}-trigger'
57         - 'os-onos-nofeature-noha':
58             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
59         - 'os-ocl-nofeature-ha':
60             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
61         - 'os-ocl-nofeature-noha':
62             auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
63
64     jobs:
65         - 'joid-{scenario}-{pod}-daily-{stream}'
66         - 'joid-deploy-{pod}-daily-{stream}'
67
68 ########################
69 # job templates
70 ########################
71 - job-template:
72     name: 'joid-{scenario}-{pod}-daily-{stream}'
73
74     concurrent: false
75
76     properties:
77         - throttle:
78             enabled: true
79             max-total: 1
80             max-per-node: 1
81         - build-blocker:
82             use-build-blocker: true
83             blocking-jobs:
84                 - 'joid-os-.*?-{pod}-daily-{stream}'
85
86     wrappers:
87         - build-name:
88             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
89
90     triggers:
91         - '{auto-trigger-name}'
92
93     parameters:
94         - project-parameter:
95             project: '{project}'
96         - '{installer}-defaults'
97         - '{pod}-defaults':
98             installer: '{installer}'
99         - string:
100             name: DEPLOY_SCENARIO
101             default: '{scenario}'
102
103     builders:
104         - trigger-builds:
105             - project: 'joid-deploy-{pod}-daily-{stream}'
106               current-parameters: true
107               predefined-parameters:
108                 DEPLOY_SCENARIO={scenario}
109               same-node: true
110               block: true
111         - trigger-builds:
112             - project: 'functest-joid-{pod}-daily-{stream}'
113               current-parameters: false
114               predefined-parameters:
115                 DEPLOY_SCENARIO={scenario}
116               same-node: true
117               block: true
118               block-thresholds:
119                 build-step-failure-threshold: 'never'
120                 failure-threshold: 'never'
121                 unstable-threshold: 'FAILURE'
122         - trigger-builds:
123             - project: 'yardstick-joid-{pod}-daily-{stream}'
124               current-parameters: false
125               predefined-parameters:
126                 DEPLOY_SCENARIO={scenario}
127               block: true
128               same-node: true
129               block-thresholds:
130                 build-step-failure-threshold: 'never'
131                 failure-threshold: 'never'
132                 unstable-threshold: 'FAILURE'
133
134 - job-template:
135     name: 'joid-deploy-{pod}-daily-{stream}'
136
137     concurrent: false
138
139     properties:
140         - throttle:
141             enabled: true
142             max-total: 1
143             max-per-node: 1
144         - build-blocker:
145             use-build-blocker: true
146             blocking-jobs:
147                 - 'joid-deploy-{pod}-daily-{stream}'
148
149     wrappers:
150         - build-name:
151             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
152         - timeout:
153             timeout: 180
154             fail: true
155
156     parameters:
157         - project-parameter:
158             project: '{project}'
159         - '{installer}-defaults'
160         - '{pod}-defaults':
161             installer: '{installer}'
162         - string:
163             name: DEPLOY_SCENARIO
164             default: 'os-odl_l2-nofeature-ha'
165
166     scm:
167         - git-scm:
168             credentials-id: '{ssh-credentials}'
169             refspec: ''
170             branch: '{branch}'
171
172     builders:
173         - 'builder-macro'
174 ########################
175 # builder macros
176 ########################
177 - builder:
178     name: 'builder-macro'
179     builders:
180         - shell: |
181             #!/bin/bash
182             echo "Running $INSTALLER_TYPE with controller $SDN_CONTROLLER"
183             echo
184             echo "------ First Executing clean.sh ------"
185             cd $WORKSPACE/ci
186             ./clean.sh
187         - shell:
188             !include-raw: ./joid-deploy.sh
189
190 ########################
191 # trigger macros
192 ########################
193 - trigger:
194     name: 'joid-os-odl_l2-nofeature-ha-intel-pod5-trigger'
195     triggers:
196         - timed: '0 2 * * *'
197 - trigger:
198     name: 'joid-os-odl_l2-nofeature-ha-intel-pod6-trigger'
199     triggers:
200         - timed: '0 2 * * *'
201 - trigger:
202     name: 'joid-os-odl_l2-nofeature-ha-orange-pod2-trigger'
203     triggers:
204         - timed: ''
205 - trigger:
206     name: 'joid-os-odl_l2-nofeature-ha-juniper-pod1-trigger'
207     triggers:
208         - timed: ''
209 - trigger:
210     name: 'joid-os-odl_l2-nofeature-ha-virtual-trigger'
211     triggers:
212         - timed: ''
213 - trigger:
214     name: 'joid-os-onos-nofeature-ha-intel-pod5-trigger'
215     triggers:
216         - timed: ''
217 - trigger:
218     name: 'joid-os-onos-nofeature-ha-intel-pod6-trigger'
219     triggers:
220         - timed: '0 14 * * *'
221 - trigger:
222     name: 'joid-os-onos-nofeature-ha-orange-pod2-trigger'
223     triggers:
224         - timed: ''
225 - trigger:
226     name: 'joid-os-onos-nofeature-ha-juniper-pod1-trigger'
227     triggers:
228         - timed: ''
229 - trigger:
230     name: 'joid-os-onos-nofeature-ha-virtual-trigger'
231     triggers:
232         - timed: ''