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
26 slave-label: 'opnfv-build-centos'
28 slave-label: 'daisy-baremetal'
30 slave-label: 'opnfv-build-centos'
32 - '{installer}-daily-{stream}'
33 - '{installer}-{phase}-daily-{stream}'
35 ########################
37 ########################
39 name: '{installer}-daily-{stream}'
41 project-type: multijob
54 use-build-blocker: true
56 - '{installer}-daily-.*'
69 - 'opnfv-build-centos-defaults'
70 - '{installer}-defaults'
71 - '{installer}-project-parameter':
72 gs-pathname: '{gs-pathname}'
82 description: "Built on $NODE_NAME"
87 - name: '{installer}-build-daily-{stream}'
88 current-parameters: false
89 predefined-parameters: |
91 GERRIT_REFSPEC=$GERRIT_REFSPEC
92 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
93 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
94 node-parameters: false
95 kill-phase-on: FAILURE
101 - name: '{installer}-deploy-daily-{stream}'
102 current-parameters: false
103 predefined-parameters: |
105 GERRIT_REFSPEC=$GERRIT_REFSPEC
106 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
107 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
108 node-parameters: false
109 kill-phase-on: FAILURE
113 condition: SUCCESSFUL
115 - name: '{installer}-test-daily-{stream}'
116 current-parameters: false
117 predefined-parameters: |
119 GERRIT_REFSPEC=$GERRIT_REFSPEC
120 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
121 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
122 node-parameters: false
123 kill-phase-on: FAILURE
127 - '{installer}-recipients'
130 name: '{installer}-{phase}-daily-{stream}'
132 disabled: '{obj:disabled}'
156 - '{installer}-defaults'
157 - '{slave-label}-defaults'
160 default: https://gerrit.opnfv.org/gerrit/$PROJECT
161 description: 'Git URL to use on this Jenkins Slave'
163 name: DEPLOY_SCENARIO
164 default: 'os-nosdn-nofeature-noha'
165 - '{installer}-project-parameter':
166 gs-pathname: '{gs-pathname}'
169 - description-setter:
170 description: "Built on $NODE_NAME"
171 - '{installer}-{phase}-daily-macro'
173 #####################################
175 #####################################
177 name: 'daisy-build-daily-macro'
180 !include-raw: ./daisy4nfv-basic.sh
182 !include-raw: ./daisy4nfv-build.sh
184 !include-raw: ./daisy4nfv-upload-artifact.sh
186 !include-raw: ./daisy4nfv-workspace-cleanup.sh
189 name: 'daisy-deploy-daily-macro'
192 !include-raw: ./daisy4nfv-download-artifact.sh
194 !include-raw: ./daisy-deploy.sh
197 name: 'daisy-test-daily-macro'
202 echo "Not activated!"
204 #####################################
206 #####################################
208 name: 'daisy-recipients'
211 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
214 name: 'daisy-project-parameter'
217 name: BUILD_DIRECTORY
218 default: $WORKSPACE/build_output
219 description: "Directory where the build artifact will be located upon the completion of the build."
221 name: CACHE_DIRECTORY
222 default: $HOME/opnfv/cache/$INSTALLER_TYPE
223 description: "Directory where the cache to be used during the build is located."
226 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
227 description: "URL to Google Storage."