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}-daily-.*'
145 - 'daisy4nfv-(merge|verify)-.*'
164 default: https://gerrit.opnfv.org/gerrit/$PROJECT
165 description: 'Git URL to use on this Jenkins Slave'
167 name: DEPLOY_SCENARIO
168 default: 'os-nosdn-nofeature-ha'
170 - '{slave-label}-defaults'
171 - '{installer}-project-parameter':
172 gs-pathname: '{gs-pathname}'
175 - description-setter:
176 description: "Built on $NODE_NAME"
177 - '{installer}-{phase}-daily-macro'
179 #####################################
181 #####################################
183 name: 'daisy-build-daily-macro'
186 !include-raw: ./daisy4nfv-basic.sh
188 !include-raw: ./daisy4nfv-build.sh
190 !include-raw: ./daisy4nfv-upload-artifact.sh
192 !include-raw: ./daisy4nfv-workspace-cleanup.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
220 name: 'daisy-project-parameter'
223 name: BUILD_DIRECTORY
224 default: $WORKSPACE/build_output
225 description: "Directory where the build artifact will be located upon the completion of the build."
227 name: CACHE_DIRECTORY
228 default: $HOME/opnfv/cache/$INSTALLER_TYPE
229 description: "Directory where the cache to be used during the build is located."
232 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
233 description: "URL to Google Storage."