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'
128 - email-jenkins-admins-on-failure
131 name: '{installer}-{phase}-daily-{stream}'
133 disabled: '{obj:disabled}'
157 - '{installer}-defaults'
158 - '{slave-label}-defaults'
161 default: https://gerrit.opnfv.org/gerrit/$PROJECT
162 description: 'Git URL to use on this Jenkins Slave'
164 name: DEPLOY_SCENARIO
165 default: 'os-nosdn-nofeature-ha'
166 - '{installer}-project-parameter':
167 gs-pathname: '{gs-pathname}'
170 - description-setter:
171 description: "Built on $NODE_NAME"
172 - '{installer}-{phase}-daily-macro'
174 #####################################
176 #####################################
178 name: 'daisy-build-daily-macro'
181 !include-raw: ./daisy4nfv-basic.sh
183 !include-raw: ./daisy4nfv-build.sh
185 !include-raw: ./daisy4nfv-upload-artifact.sh
187 !include-raw: ./daisy4nfv-workspace-cleanup.sh
190 name: 'daisy-deploy-daily-macro'
193 !include-raw: ./daisy4nfv-download-artifact.sh
195 !include-raw: ./daisy-deploy.sh
198 name: 'daisy-test-daily-macro'
203 echo "Not activated!"
205 #####################################
207 #####################################
209 name: 'daisy-recipients'
212 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
213 - email-jenkins-admins-on-failure
216 name: 'daisy-project-parameter'
219 name: BUILD_DIRECTORY
220 default: $WORKSPACE/build_output
221 description: "Directory where the build artifact will be located upon the completion of the build."
223 name: CACHE_DIRECTORY
224 default: $HOME/opnfv/cache/$INSTALLER_TYPE
225 description: "Directory where the cache to be used during the build is located."
228 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
229 description: "URL to Google Storage."