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-.*'
57 - 'daisy4nfv-merge-build-.*'
58 - 'daisy4nfv-verify-build-.*'
71 - 'opnfv-build-centos-defaults'
72 - '{installer}-defaults'
73 - '{installer}-project-parameter':
74 gs-pathname: '{gs-pathname}'
84 description: "Built on $NODE_NAME"
89 - name: '{installer}-build-daily-{stream}'
90 current-parameters: false
91 predefined-parameters: |
93 GERRIT_REFSPEC=$GERRIT_REFSPEC
94 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
95 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
96 node-parameters: false
97 kill-phase-on: FAILURE
101 condition: SUCCESSFUL
103 - name: '{installer}-deploy-daily-{stream}'
104 current-parameters: false
105 predefined-parameters: |
107 GERRIT_REFSPEC=$GERRIT_REFSPEC
108 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
109 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
110 node-parameters: false
111 kill-phase-on: FAILURE
115 condition: SUCCESSFUL
117 - name: '{installer}-test-daily-{stream}'
118 current-parameters: false
119 predefined-parameters: |
121 GERRIT_REFSPEC=$GERRIT_REFSPEC
122 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
123 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
124 node-parameters: false
125 kill-phase-on: FAILURE
129 - '{installer}-recipients'
130 - email-jenkins-admins-on-failure
133 name: '{installer}-{phase}-daily-{stream}'
135 disabled: '{obj:disabled}'
159 - '{installer}-defaults'
160 - '{slave-label}-defaults'
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'
168 - '{installer}-project-parameter':
169 gs-pathname: '{gs-pathname}'
172 - description-setter:
173 description: "Built on $NODE_NAME"
174 - '{installer}-{phase}-daily-macro'
176 #####################################
178 #####################################
180 name: 'daisy-build-daily-macro'
183 !include-raw: ./daisy4nfv-basic.sh
185 !include-raw: ./daisy4nfv-build.sh
187 !include-raw: ./daisy4nfv-upload-artifact.sh
191 name: 'daisy-deploy-daily-macro'
194 !include-raw: ./daisy4nfv-download-artifact.sh
196 !include-raw: ./daisy-deploy.sh
199 name: 'daisy-test-daily-macro'
204 echo "Not activated!"
206 #####################################
208 #####################################
210 name: 'daisy-recipients'
213 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
214 - email-jenkins-admins-on-failure
217 name: 'daisy-project-parameter'
220 name: BUILD_DIRECTORY
221 default: $WORKSPACE/build_output
222 description: "Directory where the build artifact will be located upon the completion of the build."
224 name: CACHE_DIRECTORY
225 default: $HOME/opnfv/cache/$INSTALLER_TYPE
226 description: "Directory where the cache to be used during the build is located."
229 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
230 description: "URL to Google Storage."