fuel: Enable usage of new scenario description
[releng.git] / jjb / fuel / fuel-ci-jobs.yml
1 - project:
2
3     name: 'fuel'
4
5     project: '{name}'
6
7     installer: '{name}'
8
9 #--------------------------------
10 # BRANCH ANCHORS
11 #--------------------------------
12     master: &master
13         stream: master
14         branch: '{stream}'
15         gs-pathname: ''
16     brahmaputra: &brahmaputra
17         stream: brahmaputra
18         branch: 'stable/{stream}'
19         gs-pathname: '/{stream}'
20 #--------------------------------
21 # POD, INSTALLER, AND BRANCH MAPPING
22 #--------------------------------
23 #        brahmaputra
24 #--------------------------------
25     pod:
26         - opnfv-jump-2:
27             <<: *brahmaputra
28 #--------------------------------
29 #        master
30 #--------------------------------
31         - ericsson-pod1:
32             <<: *master
33         - ericsson-pod2:
34             <<: *master
35 #--------------------------------
36
37 # please check the triggers before enabling any of the controllers!!!
38     sdn-controller:
39         - 'nosdn':
40             disabled: false
41 # commented out below controllers to get nosdn scenario settled first
42 #        - 'odl':
43 #            disabled: true
44 #        - 'onos':
45 #            disabled: true
46 #        - 'opencontrail':
47 #            disabled: true
48
49     jobs:
50         - 'fuel-{sdn-controller}-{pod}-daily-{stream}'
51         - 'fuel-deploy-{pod}-daily-{stream}'
52         - 'fuel-deploy-{pod}-daily-{stream}-wip'
53
54 ########################
55 # job templates
56 ########################
57 - job-template:
58     name: 'fuel-{sdn-controller}-{pod}-daily-{stream}'
59
60     project-type: multijob
61
62     disabled: '{obj:disabled}'
63
64     concurrent: false
65
66     properties:
67         - throttle:
68             enabled: true
69             max-total: 1
70             max-per-node: 1
71
72     wrappers:
73         - build-name:
74             name: '$BUILD_NUMBER - SDN: $SDN_CONTROLLER Scenario: $DEPLOY_SCENARIO'
75
76     triggers:
77         - 'fuel-{pod}-{sdn-controller}-trigger'
78
79     parameters:
80         - project-parameter:
81             project: '{project}'
82         - '{pod}-defaults'
83         - '{installer}-defaults'
84         - string:
85             name: SDN_CONTROLLER
86             default: '{sdn-controller}'
87         - string:
88             name: DEPLOY_SCENARIO
89             default: 'none'
90         - fuel-ci-parameter:
91             gs-pathname: '{gs-pathname}'
92
93     scm:
94         - git-scm:
95             credentials-id: '{ssh-credentials}'
96             refspec: ''
97             branch: '{branch}'
98
99     builders:
100         - multijob:
101             name: deploy
102             condition: SUCCESSFUL
103             projects:
104                 - name: 'fuel-deploy-{pod}-daily-{stream}'
105                   current-parameters: true
106                   git-revision: true
107                   kill-phase-on: FAILURE
108         - multijob:
109             name: functest
110             condition: COMPLETED
111             projects:
112                 - name: 'functest-fuel-{pod}-daily-{stream}'
113                   current-parameters: true
114                   kill-phase-on: NEVER
115         - multijob:
116             name: yardstick
117             condition: COMPLETED
118             projects:
119                 - name: 'yardstick-fuel-{pod}-daily-{stream}'
120                   current-parameters: true
121                   kill-phase-on: NEVER
122
123 - job-template:
124     name: 'fuel-deploy-{pod}-daily-{stream}'
125
126     concurrent: false
127
128     properties:
129         - throttle:
130             enabled: true
131             max-total: 1
132             max-per-node: 1
133
134     parameters:
135         - project-parameter:
136             project: '{project}'
137         - '{pod}-defaults'
138         - '{installer}-defaults'
139         - fuel-ci-parameter:
140             gs-pathname: '{gs-pathname}'
141
142     scm:
143         - git-scm:
144             credentials-id: '{ssh-credentials}'
145             refspec: ''
146             branch: '{branch}'
147
148     wrappers:
149         - build-name:
150             name: '$BUILD_NUMBER - SDN: $SDN_CONTROLLER Scenario: $DEPLOY_SCENARIO'
151
152     builders:
153         - shell:
154             !include-raw-escape: ./fuel-download-artifact.sh
155         - shell:
156             !include-raw-escape: ./fuel-deploy.sh
157
158     publishers:
159         - email:
160             recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
161
162 - job-template:
163     name: 'fuel-deploy-{pod}-daily-{stream}-wip'
164
165     concurrent: false
166
167     properties:
168         - throttle:
169             enabled: true
170             max-total: 1
171             max-per-node: 1
172
173     parameters:
174         - project-parameter:
175             project: 'fuel'
176         - 'ericsson-pod2-defaults'
177         - 'fuel-defaults'
178         - fuel-ci-parameter:
179             gs-pathname: ''
180
181     scm:
182         - git-scm:
183             credentials-id: '{ssh-credentials}'
184             refspec: ''
185             branch: 'master'
186
187     wrappers:
188         - build-name:
189             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
190
191     builders:
192         - shell:
193             !include-raw-escape: ./fuel-download-artifact.sh
194         - shell:
195             !include-raw-escape: ./fuel-deploy-new.sh
196
197     publishers:
198         - email:
199             recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
200 ########################
201 # parameter macros
202 ########################
203 - parameter:
204     name: fuel-ci-parameter
205     parameters:
206         - string:
207             name: BUILD_DIRECTORY
208             default: $WORKSPACE/build_output
209             description: "Directory where the build artifact will be located upon the completion of the build."
210         - string:
211             name: CACHE_DIRECTORY
212             default: $HOME/opnfv/cache/$INSTALLER_TYPE
213             description: "Directory where the cache to be used during the build is located."
214         - string:
215             name: GS_URL
216             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
217             description: "URL to Google Storage."
218 ########################
219 # trigger macros
220 ########################
221 # trigger for opnfv-jump-2 is set to run 1 hour ahead of others
222 # to prevent doing unnecessary builds
223 - trigger:
224     name: 'fuel-opnfv-jump-2-nosdn-trigger'
225     triggers:
226         - timed: '0 2 * * *'
227 - trigger:
228     name: 'fuel-ericsson-pod1-nosdn-trigger'
229     triggers:
230         - timed: '0 2 * * *'
231 - trigger:
232     name: 'fuel-ericsson-pod2-nosdn-trigger'
233     triggers:
234         - timed: ''