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-.*'
67 - timed: '0 H/8 * * *'
73 - 'opnfv-build-centos-defaults'
75 - '{installer}-project-parameter':
76 gs-pathname: '{gs-pathname}'
86 description: "Built on $NODE_NAME"
91 - name: '{installer}-build-daily-{stream}'
92 current-parameters: false
93 predefined-parameters: |
95 GERRIT_REFSPEC=$GERRIT_REFSPEC
96 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
97 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
98 node-parameters: false
99 kill-phase-on: FAILURE
103 condition: SUCCESSFUL
105 - name: '{installer}-deploy-daily-{stream}'
106 current-parameters: false
107 predefined-parameters: |
109 GERRIT_REFSPEC=$GERRIT_REFSPEC
110 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
111 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
112 node-parameters: false
113 kill-phase-on: FAILURE
117 condition: SUCCESSFUL
119 - name: '{installer}-test-daily-{stream}'
120 current-parameters: false
121 predefined-parameters: |
123 GERRIT_REFSPEC=$GERRIT_REFSPEC
124 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
125 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
126 node-parameters: false
127 kill-phase-on: FAILURE
131 - '{installer}-recipients'
134 name: '{installer}-{phase}-daily-{stream}'
136 disabled: '{obj:disabled}'
163 default: https://gerrit.opnfv.org/gerrit/$PROJECT
164 description: 'Git URL to use on this Jenkins Slave'
166 name: DEPLOY_SCENARIO
167 default: 'os-nosdn-nofeature-ha'
169 - '{slave-label}-defaults'
170 - '{installer}-project-parameter':
171 gs-pathname: '{gs-pathname}'
174 - description-setter:
175 description: "Built on $NODE_NAME"
176 - '{installer}-{phase}-daily-macro'
178 #####################################
180 #####################################
182 name: 'daisy-build-daily-macro'
185 !include-raw: ./daisy4nfv-basic.sh
187 !include-raw: ./daisy4nfv-build.sh
189 !include-raw: ./daisy4nfv-upload-artifact.sh
191 !include-raw: ./daisy4nfv-workspace-cleanup.sh
194 name: 'daisy-deploy-daily-macro'
197 !include-raw: ./daisy4nfv-download-artifact.sh
199 !include-raw: ./daisy-deploy.sh
202 name: 'daisy-test-daily-macro'
207 echo "Not activated!"
209 #####################################
211 #####################################
213 name: 'daisy-recipients'
216 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
219 name: 'daisy-project-parameter'
222 name: BUILD_DIRECTORY
223 default: $WORKSPACE/build_output
224 description: "Directory where the build artifact will be located upon the completion of the build."
226 name: CACHE_DIRECTORY
227 default: $HOME/opnfv/cache/$INSTALLER_TYPE
228 description: "Directory where the cache to be used during the build is located."
231 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
232 description: "URL to Google Storage."