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
62 - timed: '0 H/8 * * *'
68 - 'opnfv-build-centos-defaults'
70 - '{installer}-project-parameter':
71 gs-pathname: '{gs-pathname}'
81 description: "Built on $NODE_NAME"
86 - name: '{installer}-build-daily-{stream}'
87 current-parameters: false
88 predefined-parameters: |
90 GERRIT_REFSPEC=$GERRIT_REFSPEC
91 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
92 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
93 node-parameters: false
94 kill-phase-on: FAILURE
100 - name: '{installer}-deploy-daily-{stream}'
101 current-parameters: false
102 predefined-parameters: |
104 GERRIT_REFSPEC=$GERRIT_REFSPEC
105 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
106 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
107 node-parameters: false
108 kill-phase-on: FAILURE
112 condition: SUCCESSFUL
114 - name: '{installer}-test-daily-{stream}'
115 current-parameters: false
116 predefined-parameters: |
118 GERRIT_REFSPEC=$GERRIT_REFSPEC
119 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
120 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
121 node-parameters: false
122 kill-phase-on: FAILURE
126 - '{installer}-recipients'
129 name: '{installer}-{phase}-daily-{stream}'
131 disabled: '{obj:disabled}'
142 use-build-blocker: true
144 - '{installer}-.*deploy-.*'
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-escape: ./daisy4nfv-basic.sh
187 !include-raw-escape: ./daisy4nfv-build.sh
189 !include-raw-escape: ./daisy4nfv-upload-artifact.sh
191 !include-raw-escape: ./daisy4nfv-workspace-cleanup.sh
194 name: 'daisy-deploy-daily-macro'
197 !include-raw-escape: ./daisy4nfv-download-artifact.sh
199 !include-raw-escape: ./daisy4nfv-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."