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