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'
74 - '{installer}-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}'
160 - '{installer}-defaults'
161 - '{slave-label}-defaults'
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'
169 - '{installer}-project-parameter':
170 gs-pathname: '{gs-pathname}'
173 - description-setter:
174 description: "Built on $NODE_NAME"
175 - '{installer}-{phase}-daily-macro'
177 #####################################
179 #####################################
181 name: 'daisy-build-daily-macro'
184 !include-raw: ./daisy4nfv-basic.sh
186 !include-raw: ./daisy4nfv-build.sh
188 !include-raw: ./daisy4nfv-upload-artifact.sh
190 !include-raw: ./daisy4nfv-workspace-cleanup.sh
193 name: 'daisy-deploy-daily-macro'
196 !include-raw: ./daisy4nfv-download-artifact.sh
198 !include-raw: ./daisy-deploy.sh
201 name: 'daisy-test-daily-macro'
206 echo "Not activated!"
208 #####################################
210 #####################################
212 name: 'daisy-recipients'
215 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
218 name: 'daisy-project-parameter'
221 name: BUILD_DIRECTORY
222 default: $WORKSPACE/build_output
223 description: "Directory where the build artifact will be located upon the completion of the build."
225 name: CACHE_DIRECTORY
226 default: $HOME/opnfv/cache/$INSTALLER_TYPE
227 description: "Directory where the cache to be used during the build is located."
230 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
231 description: "URL to Google Storage."