Fuel: Enable the jobs for newly added scenarios
[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
41     jobs:
42         - 'fuel-{sdn-controller}-{pod}-daily-{stream}'
43         - 'fuel-deploy-{pod}-daily-{stream}'
44
45 ########################
46 # job templates - old type of defining the scenario
47 ########################
48 - job-template:
49     name: 'fuel-{sdn-controller}-{pod}-daily-{stream}'
50
51     project-type: multijob
52
53     concurrent: false
54
55     properties:
56         - throttle:
57             enabled: true
58             max-total: 1
59             max-per-node: 1
60
61     wrappers:
62         - build-name:
63             name: '$BUILD_NUMBER - SDN: $SDN_CONTROLLER Scenario: $DEPLOY_SCENARIO'
64
65     triggers:
66         - 'fuel-{pod}-{sdn-controller}-trigger'
67
68     parameters:
69         - project-parameter:
70             project: '{project}'
71         - '{pod}-defaults'
72         - '{installer}-defaults'
73         - string:
74             name: SDN_CONTROLLER
75             default: '{sdn-controller}'
76         - string:
77             name: DEPLOY_SCENARIO
78             default: 'none'
79         - fuel-ci-parameter:
80             gs-pathname: '{gs-pathname}'
81
82     scm:
83         - git-scm:
84             credentials-id: '{ssh-credentials}'
85             refspec: ''
86             branch: '{branch}'
87
88     builders:
89         - multijob:
90             name: deploy
91             condition: SUCCESSFUL
92             projects:
93                 - name: 'fuel-deploy-{pod}-daily-{stream}'
94                   current-parameters: true
95                   git-revision: true
96                   kill-phase-on: FAILURE
97         - multijob:
98             name: functest
99             condition: COMPLETED
100             projects:
101                 - name: 'functest-fuel-{pod}-daily-{stream}'
102                   current-parameters: true
103                   kill-phase-on: NEVER
104         - multijob:
105             name: yardstick
106             condition: COMPLETED
107             projects:
108                 - name: 'yardstick-fuel-{pod}-daily-{stream}'
109                   current-parameters: true
110                   kill-phase-on: NEVER
111
112 - job-template:
113     name: 'fuel-deploy-{pod}-daily-{stream}'
114
115     concurrent: false
116
117     properties:
118         - throttle:
119             enabled: true
120             max-total: 1
121             max-per-node: 1
122
123     parameters:
124         - project-parameter:
125             project: '{project}'
126         - '{pod}-defaults'
127         - '{installer}-defaults'
128         - fuel-ci-parameter:
129             gs-pathname: '{gs-pathname}'
130
131     scm:
132         - git-scm:
133             credentials-id: '{ssh-credentials}'
134             refspec: ''
135             branch: '{branch}'
136
137     wrappers:
138         - build-name:
139             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
140
141     builders:
142         - 'builder-{stream}'
143
144     publishers:
145         - email:
146             recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
147 ########################
148 # parameter macros
149 ########################
150 - parameter:
151     name: fuel-ci-parameter
152     parameters:
153         - string:
154             name: BUILD_DIRECTORY
155             default: $WORKSPACE/build_output
156             description: "Directory where the build artifact will be located upon the completion of the build."
157         - string:
158             name: CACHE_DIRECTORY
159             default: $HOME/opnfv/cache/$INSTALLER_TYPE
160             description: "Directory where the cache to be used during the build is located."
161         - string:
162             name: GS_URL
163             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
164             description: "URL to Google Storage."
165 ########################
166 # builder macros
167 ########################
168 - builder:
169     name: 'builder-master'
170     builders:
171         - shell:
172             !include-raw: ./fuel-download-artifact.sh
173         - shell:
174             !include-raw: ./fuel-deploy-master.sh
175 - builder:
176     name: 'builder-brahmaputra'
177     builders:
178         - shell:
179             !include-raw: ./fuel-download-artifact.sh
180         - shell:
181             !include-raw: ./fuel-deploy.sh
182 ########################
183 # trigger macros
184 ########################
185 # trigger for opnfv-jump-2 is set to run 1 hour ahead of others
186 # to prevent doing unnecessary builds
187 - trigger:
188     name: 'fuel-opnfv-jump-2-nosdn-trigger'
189     triggers:
190         - timed: '0 2 * * *'
191 - trigger:
192     name: 'fuel-ericsson-pod1-nosdn-trigger'
193     triggers:
194         - timed: '0 2 * * *'
195 - trigger:
196     name: 'fuel-ericsson-pod2-nosdn-trigger'
197     triggers:
198         - timed: ''