Made new doc job voting
[releng.git] / jjb / multisite / multisite-daily-jobs.yml
1 - project:
2     name: kingbird
3
4     project: 'multisite'
5
6     jobs:
7         - 'multisite-kingbird-virtual-daily-{stream}'
8         - 'multisite-{phase}-{stream}'
9
10     phase:
11         - 'fuel-deploy-regionone-virtual':
12             slave-label: ericsson-virtual12
13         - 'fuel-deploy-regiontwo-virtual':
14             slave-label: ericsson-virtual13
15         - 'register-endpoints':
16             slave-label: ericsson-virtual12
17         - 'update-auth':
18             slave-label: ericsson-virtual13
19         - 'kingbird-deploy-virtual':
20             slave-label: ericsson-virtual12
21
22     stream:
23         - master:
24             branch: '{stream}'
25             gs-pathname: ''
26             disabled: false
27             timed: '@midnight'
28
29 - job-template:
30     name: 'multisite-kingbird-virtual-daily-{stream}'
31
32     project-type: multijob
33
34     disabled: '{obj:disabled}'
35
36     concurrent: false
37
38     parameters:
39         - project-parameter:
40             project: '{project}'
41             branch: '{branch}'
42         - choice:
43             name: FRESH_INSTALL
44             choices:
45                 - 'true'
46                 - 'false'
47         - string:
48             name: KINGBIRD_LOG_FILE
49             default: $WORKSPACE/kingbird.log
50         - 'opnfv-build-defaults'
51
52     triggers:
53          - timed: '{timed}'
54
55     builders:
56         - description-setter:
57             description: "Built on $NODE_NAME"
58         - multijob:
59             name: fuel-deploy-virtual
60             condition: SUCCESSFUL
61             projects:
62                 - name: 'multisite-fuel-deploy-regionone-virtual-{stream}'
63                   current-parameters: false
64                   predefined-parameters: |
65                     FUEL_VERSION=latest
66                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
67                     OS_REGION=RegionOne
68                     REGIONONE_IP=100.64.209.10
69                     REGIONTWO_IP=100.64.209.11
70                     FRESH_INSTALL=$FRESH_INSTALL
71                   node-parameters: false
72                   node-label-name: SLAVE_LABEL
73                   node-label: ericsson-virtual12
74                   kill-phase-on: FAILURE
75                   abort-all-job: true
76                 - name: 'multisite-fuel-deploy-regiontwo-virtual-{stream}'
77                   current-parameters: false
78                   predefined-parameters: |
79                     FUEL_VERSION=latest
80                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
81                     OS_REGION=RegionTwo
82                     REGIONONE_IP=100.64.209.10
83                     REGIONTWO_IP=100.64.209.11
84                     FRESH_INSTALL=$FRESH_INSTALL
85                   node-parameters: false
86                   node-label-name: SLAVE_LABEL
87                   node-label: ericsson-virtual13
88                   kill-phase-on: FAILURE
89                   abort-all-job: true
90         - multijob:
91             name: centralize-keystone
92             condition: SUCCESSFUL
93             projects:
94                 - name: 'multisite-register-endpoints-{stream}'
95                   current-parameters: false
96                   predefined-parameters: |
97                     OS_REGION=RegionOne
98                     REGIONONE_IP=100.64.209.10
99                     REGIONTWO_IP=100.64.209.11
100                     FRESH_INSTALL=$FRESH_INSTALL
101                   node-parameters: false
102                   node-label-name: SLAVE_LABEL
103                   node-label: ericsson-virtual12
104                   kill-phase-on: FAILURE
105                   abort-all-job: true
106                 - name: 'multisite-update-auth-{stream}'
107                   current-parameters: false
108                   predefined-parameters: |
109                     OS_REGION=RegionTwo
110                     REGIONONE_IP=100.64.209.10
111                     REGIONTWO_IP=100.64.209.11
112                     FRESH_INSTALL=$FRESH_INSTALL
113                   node-parameters: false
114                   node-label-name: SLAVE_LABEL
115                   node-label: ericsson-virtual13
116                   kill-phase-on: FAILURE
117                   abort-all-job: true
118         - multijob:
119             name: kingbird-deploy-virtual
120             condition: SUCCESSFUL
121             projects:
122                 - name: 'multisite-kingbird-deploy-virtual-{stream}'
123                   current-parameters: false
124                   predefined-parameters: |
125                     OS_REGION=RegionOne
126                     REGIONONE_IP=100.64.209.10
127                     REGIONTWO_IP=100.64.209.11
128                     FRESH_INSTALL=$FRESH_INSTALL
129                   node-parameters: false
130                   node-label-name: SLAVE_LABEL
131                   node-label: ericsson-virtual12
132                   kill-phase-on: FAILURE
133                   abort-all-job: true
134         - multijob:
135             name: kingbird-functest
136             condition: SUCCESSFUL
137             projects:
138                 - name: 'functest-fuel-virtual-suite-{stream}'
139                   current-parameters: false
140                   predefined-parameters: |
141                     DEPLOY_SCENARIO=os-nosdn-multisite-noha
142                     FUNCTEST_SUITE_NAME=multisite
143                     OS_REGION=RegionOne
144                     REGIONONE_IP=100.64.209.10
145                     REGIONTWO_IP=100.64.209.11
146                     FRESH_INSTALL=$FRESH_INSTALL
147                   node-parameters: false
148                   node-label-name: SLAVE_LABEL
149                   node-label: ericsson-virtual12
150                   kill-phase-on: NEVER
151                   abort-all-job: false
152
153 - job-template:
154     name: 'multisite-{phase}-{stream}'
155
156     concurrent: false
157
158     disabled: '{obj:disabled}'
159
160     concurrent: false
161
162     parameters:
163         - project-parameter:
164             project: '{project}'
165             branch: '{branch}'
166         - string:
167             name: KINGBIRD_LOG_FILE
168             default: $WORKSPACE/kingbird.log
169         - 'fuel-defaults'
170         - '{slave-label}-defaults'
171         - choice:
172             name: FRESH_INSTALL
173             choices:
174                 - 'true'
175                 - 'false'
176
177     scm:
178         - git-scm
179
180     builders:
181         - description-setter:
182             description: "Built on $NODE_NAME"
183         - 'multisite-{phase}-builder':
184             stream: '{stream}'
185
186     publishers:
187         - 'multisite-{phase}-publisher'
188
189 ########################
190 # builder macros
191 ########################
192 - builder:
193     name: 'multisite-fuel-deploy-regionone-virtual-builder'
194     builders:
195         - shell:
196             !include-raw-escape: ./fuel-deploy-for-multisite.sh
197         - shell: |
198             #!/bin/bash
199
200             echo "This is where we deploy fuel, extract passwords and save into file"
201
202             cd $WORKSPACE/tools/keystone/
203             ./run.sh -t controller -r fetchpass.sh -o servicepass.ini
204
205 - builder:
206     name: 'multisite-fuel-deploy-regiontwo-virtual-builder'
207     builders:
208         - shell:
209             !include-raw-escape: ./fuel-deploy-for-multisite.sh
210         - shell: |
211             #!/bin/bash
212
213             echo "This is where we deploy fuel, extract publicUrl, privateUrl, and adminUrl and save into file"
214
215             cd $WORKSPACE/tools/keystone/
216             ./run.sh -t controller -r endpoint.sh -o endpoints.ini
217 - builder:
218     name: 'multisite-register-endpoints-builder'
219     builders:
220         - copyartifact:
221             project: 'multisite-fuel-deploy-regiontwo-virtual-{stream}'
222             which-build: multijob-build
223             filter: "endpoints.ini"
224         - shell: |
225             #!/bin/bash
226
227             echo "This is where we register RegionTwo in RegionOne keystone using endpoints.ini"
228
229             cd $WORKSPACE/tools/keystone/
230             ./run.sh -t controller -r region.sh -d $WORKSPACE/endpoints.ini
231 - builder:
232     name: 'multisite-update-auth-builder'
233     builders:
234         - copyartifact:
235             project: 'multisite-fuel-deploy-regionone-virtual-{stream}'
236             which-build: multijob-build
237             filter: "servicepass.ini"
238         - shell: |
239             #!/bin/bash
240
241             echo "This is where we read passwords from servicepass.ini and replace passwords in RegionTwo"
242
243             cd $WORKSPACE/tools/keystone/
244             ./run.sh -t controller -r writepass.sh -d $WORKSPACE/servicepass.ini
245             ./run.sh -t compute -r writepass.sh -d $WORKSPACE/servicepass.ini
246 - builder:
247     name: 'multisite-kingbird-deploy-virtual-builder'
248     builders:
249         - shell: |
250             #!/bin/bash
251
252             echo "This is where we install kingbird"
253             cd $WORKSPACE/tools/kingbird
254             ./deploy.sh
255 ########################
256 # publisher macros
257 ########################
258 - publisher:
259     name: 'multisite-fuel-deploy-regionone-virtual-publisher'
260     publishers:
261         - archive:
262             artifacts: 'servicepass.ini'
263             allow-empty: false
264             only-if-success: true
265             fingerprint: true
266 - publisher:
267     name: 'multisite-fuel-deploy-regiontwo-virtual-publisher'
268     publishers:
269         - archive:
270             artifacts: 'endpoints.ini'
271             allow-empty: false
272             only-if-success: true
273             fingerprint: true
274 - publisher:
275     name: 'multisite-register-endpoints-publisher'
276     publishers:
277         - archive:
278             artifacts: 'dummy.txt'
279             allow-empty: true
280 - publisher:
281     name: 'multisite-update-auth-publisher'
282     publishers:
283         - archive:
284             artifacts: 'dummy.txt'
285             allow-empty: true
286 - publisher:
287     name: 'multisite-kingbird-deploy-virtual-publisher'
288     publishers:
289         - archive:
290             artifacts: 'dummy.txt'
291             allow-empty: true
292 - publisher:
293     name: 'multisite-kingbird-functest-publisher'
294     publishers:
295         - archive:
296             artifacts: 'dummy.txt'
297             allow-empty: true