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-.*'
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-euphrates-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-.*'
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}'
232 - '{installer}-defaults'
233 - '{slave-label}-defaults'
236 default: https://gerrit.opnfv.org/gerrit/$PROJECT
237 description: 'Git URL to use on this Jenkins Slave'
239 name: DEPLOY_SCENARIO
240 default: 'os-nosdn-nofeature-ha'
241 - '{installer}-project-parameter':
242 gs-pathname: '{gs-pathname}'
245 - description-setter:
246 description: "Built on $NODE_NAME"
247 - '{installer}-{phase}-daily-macro'
249 #####################################
251 #####################################
253 name: 'daisy-build-daily-macro'
256 !include-raw: ./daisy4nfv-basic.sh
258 !include-raw: ./daisy4nfv-build.sh
260 !include-raw: ./daisy4nfv-upload-artifact.sh
264 name: 'daisy-deploy-daily-macro'
267 !include-raw: ./daisy4nfv-download-artifact.sh
269 !include-raw: ./daisy-deploy.sh
272 name: 'daisy-test-daily-macro'
277 echo "Not activated!"
279 #####################################
281 #####################################
283 name: 'daisy-recipients'
285 # yamllint disable rule:line-length
287 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
288 # yamllint enable rule:line-length
289 - email-jenkins-admins-on-failure
292 name: 'daisy-project-parameter'
295 name: BUILD_DIRECTORY
296 default: $WORKSPACE/build_output
297 description: "Directory where the build artifact will be located upon the completion of the build."
299 name: CACHE_DIRECTORY
300 default: $HOME/opnfv/cache/$INSTALLER_TYPE
301 description: "Directory where the cache to be used during the build is located."
304 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
305 description: "URL to Google Storage."