2 ######################################################################
3 # Add daily jobs, for buidoing, deploying and testing
5 # - [ ] Add yardstick and functest for test stage
6 # - [x] Use daisy-baremetal-defauls for choosing baremetal deployment
7 ######################################################################
9 #############################
10 # Job configuration for daisy
11 #############################
13 name: daisy-project-jobs
25 branch: 'stable/{stream}'
26 gs-pathname: '/{stream}'
31 slave-label: 'opnfv-build-centos'
33 slave-label: 'daisy-baremetal'
35 slave-label: 'opnfv-build-centos'
38 - '{installer}-daily-{stream}'
39 - '{installer}-{phase}-daily-{stream}'
40 - '{installer}-kolla-build-{stream}'
42 #############################
43 # docker build job templates
44 #############################
46 name: '{installer}-kolla-build-{stream}'
57 use-build-blocker: true
58 # Note: Need to block all jobs which may create daisy VM.
60 - '{installer}-kolla-build-.*'
63 blocking-level: 'NODE'
69 - 'daisy-kolla-build-{stream}-trigger'
75 - 'daisy-virtual-defaults'
76 - '{installer}-defaults'
77 - '{installer}-project-parameter':
78 gs-pathname: '{gs-pathname}'
88 description: "Built on $NODE_NAME"
90 !include-raw-escape: ./daisy4nfv-build-kolla-image.sh
93 - '{installer}-recipients'
94 - email-jenkins-admins-on-failure
97 name: 'daisy-kolla-build-fraser-trigger'
102 name: 'daisy-kolla-build-master-trigger'
104 - timed: '0 12 * * 0'
107 ########################
109 ########################
111 name: '{installer}-daily-{stream}'
113 project-type: multijob
126 use-build-blocker: true
128 - '{installer}-daily-.*'
129 - '{installer}-kolla-build-.*'
130 - 'daisy4nfv-merge-build-.*'
131 - 'daisy4nfv-verify-build-.*'
132 blocking-level: 'NODE'
144 - 'opnfv-build-centos-defaults'
145 - '{installer}-defaults'
146 - '{installer}-project-parameter':
147 gs-pathname: '{gs-pathname}'
156 - description-setter:
157 description: "Built on $NODE_NAME"
160 condition: SUCCESSFUL
162 - name: '{installer}-build-daily-{stream}'
163 current-parameters: false
164 predefined-parameters: |
166 GERRIT_REFSPEC=$GERRIT_REFSPEC
167 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
168 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
169 node-parameters: false
170 kill-phase-on: FAILURE
174 condition: SUCCESSFUL
176 - name: '{installer}-deploy-daily-{stream}'
177 current-parameters: false
178 predefined-parameters: |
180 GERRIT_REFSPEC=$GERRIT_REFSPEC
181 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
182 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
183 node-parameters: false
184 kill-phase-on: FAILURE
188 condition: SUCCESSFUL
190 - name: '{installer}-test-daily-{stream}'
191 current-parameters: false
192 predefined-parameters: |
194 GERRIT_REFSPEC=$GERRIT_REFSPEC
195 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
196 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
197 node-parameters: false
198 kill-phase-on: FAILURE
202 - '{installer}-recipients'
203 - email-jenkins-admins-on-failure
206 name: '{installer}-{phase}-daily-{stream}'
208 disabled: '{obj:disabled}'
219 use-build-blocker: true
221 - '{installer}-daily-(build|deploy|test)-(fraser|master)'
222 - '{installer}-.*-(baremetal|virtual|zte-pod3|zte-pod9)-daily-(fraser|master)'
223 - '(functest|yardstick)-{installer}-(baremetal|virtual|zte-pod3|zte-pod9)-daily-(fraser|master)'
224 blocking-level: 'NODE'
239 - '{installer}-defaults'
240 - '{slave-label}-defaults'
243 default: https://gerrit.opnfv.org/gerrit/$PROJECT
244 description: 'Git URL to use on this Jenkins Slave'
246 name: DEPLOY_SCENARIO
247 default: 'os-nosdn-nofeature-ha'
248 - '{installer}-project-parameter':
249 gs-pathname: '{gs-pathname}'
252 - description-setter:
253 description: "Built on $NODE_NAME"
254 - '{installer}-{phase}-daily-macro'
256 #####################################
258 #####################################
260 name: 'daisy-build-daily-macro'
263 !include-raw: ./daisy4nfv-basic.sh
265 !include-raw: ./daisy4nfv-build.sh
267 !include-raw: ./daisy4nfv-upload-artifact.sh
271 name: 'daisy-deploy-daily-macro'
274 !include-raw: ./daisy4nfv-download-artifact.sh
276 !include-raw: ./daisy-deploy.sh
279 name: 'daisy-test-daily-macro'
284 echo "Not activated!"
286 #####################################
288 #####################################
290 name: 'daisy-recipients'
292 # yamllint disable rule:line-length
294 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
295 # yamllint enable rule:line-length
296 - email-jenkins-admins-on-failure
299 name: 'daisy-project-parameter'
302 name: BUILD_DIRECTORY
303 default: $WORKSPACE/build_output
304 description: "Directory where the build artifact will be located upon the completion of the build."
306 name: CACHE_DIRECTORY
307 default: $HOME/opnfv/cache/$INSTALLER_TYPE
308 description: "Directory where the cache to be used during the build is located."
311 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
312 description: "URL to Google Storage."