Merge "Apex using a different network settings file for master"
[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         - 'fuel-deploy-regiontwo-virtual'
13         - 'register-endpoints'
14         - 'update-auth'
15         - 'kingbird-deploy-virtual'
16         - 'kingbird-functest'
17
18     stream:
19         - master:
20             branch: '{stream}'
21             gs-pathname: ''
22             disabled: false
23             timed: '#@midnight'
24
25 - job-template:
26     name: 'multisite-kingbird-virtual-daily-{stream}'
27
28     project-type: multijob
29
30     disabled: '{obj:disabled}'
31
32     concurrent: false
33
34     parameters:
35         - project-parameter:
36             project: '{project}'
37         - string:
38             name: KINGBIRD_LOG_FILE
39             default: $WORKSPACE/kingbird.log
40         - 'multisite-virtual-defaults'
41         - string:
42             name: DEPLOY_SCENARIO
43             default: 'os-nosdn-multisite-noha'
44
45     triggers:
46          - timed: '{timed}'
47
48     builders:
49         - description-setter:
50             description: "Built on $NODE_NAME"
51         - multijob:
52             name: fuel-deploy-virtual
53             condition: SUCCESSFUL
54             projects:
55                 - name: 'multisite-fuel-deploy-regionone-virtual-{stream}'
56                   current-parameters: false
57                   predefined-parameters: |
58                     FUEL_VERSION=latest
59                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
60                     OS_REGION=RegionOne
61                     REGIONONE_IP=10.2.117.79
62                     REGIONTWO_IP=10.2.117.181
63                   node-parameters: false
64                   node-label-name: SLAVE_LABEL
65                   node-label: intel-virtual2
66                   kill-phase-on: FAILURE
67                   abort-all-job: true
68                 - name: 'multisite-fuel-deploy-regiontwo-virtual-{stream}'
69                   current-parameters: false
70                   predefined-parameters: |
71                     FUEL_VERSION=latest
72                     DEPLOY_SCENARIO=$DEPLOY_SCENARIO
73                     OS_REGION=RegionTwo
74                     REGIONONE_IP=10.2.117.79
75                     REGIONTWO_IP=10.2.117.181
76                   node-parameters: false
77                   node-label-name: SLAVE_LABEL
78                   node-label: intel-virtual6
79                   kill-phase-on: FAILURE
80                   abort-all-job: true
81         - multijob:
82             name: centralize-keystone
83             condition: SUCCESSFUL
84             projects:
85                 - name: 'multisite-register-endpoints-{stream}'
86                   current-parameters: false
87                   predefined-parameters: |
88                     OS_REGION=RegionOne
89                     REGIONONE_IP=10.2.117.79
90                     REGIONTWO_IP=10.2.117.181
91                   node-parameters: false
92                   node-label-name: SLAVE_LABEL
93                   node-label: intel-virtual2
94                   kill-phase-on: FAILURE
95                   abort-all-job: true
96                 - name: 'multisite-update-auth-{stream}'
97                   current-parameters: false
98                   predefined-parameters: |
99                     OS_REGION=RegionTwo
100                     REGIONONE_IP=10.2.117.79
101                     REGIONTWO_IP=10.2.117.181
102                   node-parameters: false
103                   node-label-name: SLAVE_LABEL
104                   node-label: intel-virtual6
105                   kill-phase-on: FAILURE
106                   abort-all-job: true
107         - multijob:
108             name: kingbird-deploy-virtual
109             condition: SUCCESSFUL
110             projects:
111                 - name: 'multisite-kingbird-deploy-virtual-{stream}'
112                   current-parameters: false
113                   predefined-parameters: |
114                     OS_REGION=RegionOne
115                     REGIONONE_IP=10.2.117.79
116                     REGIONTWO_IP=10.2.117.181
117                   node-parameters: false
118                   node-label-name: SLAVE_LABEL
119                   node-label: intel-virtual2
120                   kill-phase-on: FAILURE
121                   abort-all-job: true
122         - multijob:
123             name: kingbird-functest
124             condition: SUCCESSFUL
125             projects:
126                 - name: 'multisite-kingbird-functest-{stream}'
127                   current-parameters: false
128                   predefined-parameters: |
129                     OS_REGION=RegionOne
130                     REGIONONE_IP=10.2.117.79
131                     REGIONTWO_IP=10.2.117.181
132                   node-parameters: false
133                   node-label-name: SLAVE_LABEL
134                   node-label: intel-virtual2
135                   kill-phase-on: NEVER
136                   abort-all-job: false
137
138 - job-template:
139     name: 'multisite-{phase}-{stream}'
140
141     concurrent: false
142
143     builders:
144         - description-setter:
145             description: "Built on $NODE_NAME"
146         - 'multisite-{phase}-builder':
147             stream: '{stream}'
148
149     publishers:
150         - 'multisite-{phase}-publisher'
151
152 ########################
153 # builder macros
154 ########################
155 - builder:
156     name: 'multisite-fuel-deploy-regionone-virtual-builder'
157     builders:
158         - shell: |
159             #!/bin/bash
160
161             echo "This is where we deploy fuel, extract passwords and save into file"
162 - builder:
163     name: 'multisite-fuel-deploy-regiontwo-virtual-builder'
164     builders:
165         - shell: |
166             #!/bin/bash
167
168             echo "This is where we deploy fuel, extract publicUrl, privateUrl, and adminUrl and save into file"
169 - builder:
170     name: 'multisite-register-endpoints-builder'
171     builders:
172         - copyartifact:
173             project: 'multisite-fuel-deploy-regiontwo-virtual-{stream}'
174             which-build: multijob-build
175             filter: "RegionTwo-Endpoints.txt"
176         - shell: |
177             #!/bin/bash
178
179             echo "This is where we register RegionTwo in RegionOne keystone"
180 - builder:
181     name: 'multisite-update-auth-builder'
182     builders:
183         - copyartifact:
184             project: 'multisite-fuel-deploy-regionone-virtual-{stream}'
185             which-build: multijob-build
186             filter: "RegionOne-Passwords.txt"
187         - shell: |
188             #!/bin/bash
189
190             echo "This is where we read passwords from RegionOne-passwords.txt and replace passwords in RegionTwo"
191 - builder:
192     name: 'multisite-kingbird-deploy-virtual-builder'
193     builders:
194         - shell: |
195             #!/bin/bash
196
197             echo "This is where we install kingbird"
198 - builder:
199     name: 'multisite-kingbird-functest-builder'
200     builders:
201         - shell: |
202             #!/bin/bash
203
204             echo "This is where we run kingbird-functest"
205 ########################
206 # publisher macros
207 ########################
208 - publisher:
209     name: 'multisite-fuel-deploy-regionone-virtual-publisher'
210     publishers:
211         - archive:
212             artifacts: '/root/servicepass.ini'
213             allow-empty: false
214             only-if-success: true
215             fingerprint: true
216 - publisher:
217     name: 'multisite-fuel-deploy-regiontwo-virtual-publisher'
218     publishers:
219         - archive:
220             artifacts: '/root/endpoints.ini'
221             allow-empty: false
222             only-if-success: true
223             fingerprint: true
224 - publisher:
225     name: 'multisite-register-endpoints-publisher'
226     publishers:
227         - archive:
228             artifacts: 'dummy.txt'
229             allow-empty: true
230 - publisher:
231     name: 'multisite-update-auth-publisher'
232     publishers:
233         - archive:
234             artifacts: 'dummy.txt'
235             allow-empty: true
236 - publisher:
237     name: 'multisite-kingbird-deploy-virtual-publisher'
238     publishers:
239         - archive:
240             artifacts: 'dummy.txt'
241             allow-empty: true
242 - publisher:
243     name: 'multisite-kingbird-functest-publisher'
244     publishers:
245         - archive:
246             artifacts: 'dummy.txt'
247             allow-empty: true