1 ######################################################################
2 # Add daily jobs, for buidoing, deploying and testing
4 # - [ ] Add yardstick and functest for test stage
5 # - [x] Use daisy-baremetal-defauls for choosing baremetal deployment
6 ######################################################################
8 #############################
9 # Job configuration for daisy
10 #############################
12 name: daisy-project-jobs
24 branch: 'stable/{stream}'
25 gs-pathname: '/{stream}'
30 slave-label: 'opnfv-build-centos'
32 slave-label: 'daisy-baremetal'
34 slave-label: 'opnfv-build-centos'
36 - '{installer}-daily-{stream}'
37 - '{installer}-{phase}-daily-{stream}'
39 ########################
41 ########################
43 name: '{installer}-daily-{stream}'
45 project-type: multijob
58 use-build-blocker: true
60 - '{installer}-daily-.*'
61 - 'daisy4nfv-merge-build-.*'
62 - 'daisy4nfv-verify-build-.*'
75 - 'opnfv-build-centos-defaults'
76 - '{installer}-defaults'
77 - '{installer}-project-parameter':
78 gs-pathname: '{gs-pathname}'
88 description: "Built on $NODE_NAME"
93 - name: '{installer}-build-daily-{stream}'
94 current-parameters: false
95 predefined-parameters: |
97 GERRIT_REFSPEC=$GERRIT_REFSPEC
98 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
99 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
100 node-parameters: false
101 kill-phase-on: FAILURE
105 condition: SUCCESSFUL
107 - name: '{installer}-deploy-daily-{stream}'
108 current-parameters: false
109 predefined-parameters: |
111 GERRIT_REFSPEC=$GERRIT_REFSPEC
112 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
113 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
114 node-parameters: false
115 kill-phase-on: FAILURE
119 condition: SUCCESSFUL
121 - name: '{installer}-test-daily-{stream}'
122 current-parameters: false
123 predefined-parameters: |
125 GERRIT_REFSPEC=$GERRIT_REFSPEC
126 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
127 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
128 node-parameters: false
129 kill-phase-on: FAILURE
133 - '{installer}-recipients'
134 - email-jenkins-admins-on-failure
137 name: '{installer}-{phase}-daily-{stream}'
139 disabled: '{obj:disabled}'
163 - '{installer}-defaults'
164 - '{slave-label}-defaults'
167 default: https://gerrit.opnfv.org/gerrit/$PROJECT
168 description: 'Git URL to use on this Jenkins Slave'
170 name: DEPLOY_SCENARIO
171 default: 'os-nosdn-nofeature-ha'
172 - '{installer}-project-parameter':
173 gs-pathname: '{gs-pathname}'
176 - description-setter:
177 description: "Built on $NODE_NAME"
178 - '{installer}-{phase}-daily-macro'
180 #####################################
182 #####################################
184 name: 'daisy-build-daily-macro'
187 !include-raw: ./daisy4nfv-basic.sh
189 !include-raw: ./daisy4nfv-build.sh
191 !include-raw: ./daisy4nfv-upload-artifact.sh
195 name: 'daisy-deploy-daily-macro'
198 !include-raw: ./daisy4nfv-download-artifact.sh
200 !include-raw: ./daisy-deploy.sh
203 name: 'daisy-test-daily-macro'
208 echo "Not activated!"
210 #####################################
212 #####################################
214 name: 'daisy-recipients'
217 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
218 - email-jenkins-admins-on-failure
221 name: 'daisy-project-parameter'
224 name: BUILD_DIRECTORY
225 default: $WORKSPACE/build_output
226 description: "Directory where the build artifact will be located upon the completion of the build."
228 name: CACHE_DIRECTORY
229 default: $HOME/opnfv/cache/$INSTALLER_TYPE
230 description: "Directory where the cache to be used during the build is located."
233 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
234 description: "URL to Google Storage."