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}'
41 ########################
43 ########################
45 name: '{installer}-daily-{stream}'
47 project-type: multijob
60 use-build-blocker: true
62 - '{installer}-daily-.*'
63 - 'daisy4nfv-merge-build-.*'
64 - 'daisy4nfv-verify-build-.*'
77 - 'opnfv-build-centos-defaults'
78 - '{installer}-defaults'
79 - '{installer}-project-parameter':
80 gs-pathname: '{gs-pathname}'
90 description: "Built on $NODE_NAME"
95 - name: '{installer}-build-daily-{stream}'
96 current-parameters: false
97 predefined-parameters: |
99 GERRIT_REFSPEC=$GERRIT_REFSPEC
100 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
101 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
102 node-parameters: false
103 kill-phase-on: FAILURE
107 condition: SUCCESSFUL
109 - name: '{installer}-deploy-daily-{stream}'
110 current-parameters: false
111 predefined-parameters: |
113 GERRIT_REFSPEC=$GERRIT_REFSPEC
114 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
115 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
116 node-parameters: false
117 kill-phase-on: FAILURE
121 condition: SUCCESSFUL
123 - name: '{installer}-test-daily-{stream}'
124 current-parameters: false
125 predefined-parameters: |
127 GERRIT_REFSPEC=$GERRIT_REFSPEC
128 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
129 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
130 node-parameters: false
131 kill-phase-on: FAILURE
135 - '{installer}-recipients'
136 - email-jenkins-admins-on-failure
139 name: '{installer}-{phase}-daily-{stream}'
141 disabled: '{obj:disabled}'
165 - '{installer}-defaults'
166 - '{slave-label}-defaults'
169 default: https://gerrit.opnfv.org/gerrit/$PROJECT
170 description: 'Git URL to use on this Jenkins Slave'
172 name: DEPLOY_SCENARIO
173 default: 'os-nosdn-nofeature-ha'
174 - '{installer}-project-parameter':
175 gs-pathname: '{gs-pathname}'
178 - description-setter:
179 description: "Built on $NODE_NAME"
180 - '{installer}-{phase}-daily-macro'
182 #####################################
184 #####################################
186 name: 'daisy-build-daily-macro'
189 !include-raw: ./daisy4nfv-basic.sh
191 !include-raw: ./daisy4nfv-build.sh
193 !include-raw: ./daisy4nfv-upload-artifact.sh
197 name: 'daisy-deploy-daily-macro'
200 !include-raw: ./daisy4nfv-download-artifact.sh
202 !include-raw: ./daisy-deploy.sh
205 name: 'daisy-test-daily-macro'
210 echo "Not activated!"
212 #####################################
214 #####################################
216 name: 'daisy-recipients'
218 # yamllint disable rule:line-length
220 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
221 # yamllint enable rule:line-length
222 - email-jenkins-admins-on-failure
225 name: 'daisy-project-parameter'
228 name: BUILD_DIRECTORY
229 default: $WORKSPACE/build_output
230 description: "Directory where the build artifact will be located upon the completion of the build."
232 name: CACHE_DIRECTORY
233 default: $HOME/opnfv/cache/$INSTALLER_TYPE
234 description: "Directory where the cache to be used during the build is located."
237 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
238 description: "URL to Google Storage."