1 ######################################################################
2 # Add daily jobs, for buidoing, deploying and testing
4 # - [ ] Add yardstick and functest for test stage
5 ######################################################################
7 #############################
8 # Job configuration for daisy
9 #############################
11 name: daisy-project-jobs
23 branch: 'stable/{stream}'
24 gs-pathname: '/{stream}'
29 slave-label: 'opnfv-build-centos'
31 slave-label: 'opnfv-build-centos'
33 slave-label: 'opnfv-build-centos'
35 - '{installer}-daily-{stream}'
36 - '{installer}-{phase}-daily-{stream}'
38 ########################
40 ########################
42 name: '{installer}-daily-{stream}'
44 project-type: multijob
61 - timed: '0 H/8 * * *'
67 - 'opnfv-build-centos-defaults'
68 - '{installer}-project-parameter':
69 gs-pathname: '{gs-pathname}'
79 description: "Built on $NODE_NAME"
84 - name: '{installer}-build-daily-{stream}'
85 current-parameters: false
86 predefined-parameters: |
88 GERRIT_REFSPEC=$GERRIT_REFSPEC
89 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
90 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
91 node-parameters: false
92 kill-phase-on: FAILURE
98 - name: '{installer}-deploy-daily-{stream}'
99 current-parameters: false
100 predefined-parameters: |
102 GERRIT_REFSPEC=$GERRIT_REFSPEC
103 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
104 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
105 node-parameters: false
106 kill-phase-on: FAILURE
110 condition: SUCCESSFUL
112 - name: '{installer}-test-daily-{stream}'
113 current-parameters: false
114 predefined-parameters: |
116 GERRIT_REFSPEC=$GERRIT_REFSPEC
117 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
118 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
119 node-parameters: false
120 kill-phase-on: FAILURE
124 - '{installer}-recipients'
127 name: '{installer}-{phase}-daily-{stream}'
129 disabled: '{obj:disabled}'
140 use-build-blocker: true
142 - '{installer}-.*deploy-.*'
158 - '{slave-label}-defaults'
159 - '{installer}-project-parameter':
160 gs-pathname: '{gs-pathname}'
163 - description-setter:
164 description: "Built on $NODE_NAME"
165 - '{installer}-{phase}-daily-macro'
167 #####################################
169 #####################################
171 name: 'daisy-build-daily-macro'
174 !include-raw-escape: ./daisy4nfv-basic.sh
176 !include-raw-escape: ./daisy4nfv-build.sh
178 !include-raw-escape: ./daisy4nfv-upload-artifact.sh
180 !include-raw-escape: ./daisy4nfv-workspace-cleanup.sh
183 name: 'daisy-deploy-daily-macro'
186 !include-raw-escape: ./daisy4nfv-download-artifact.sh
188 !include-raw-escape: ./daisy4nfv-deploy.sh
191 name: 'daisy-test-daily-macro'
196 echo "Not activated!"
198 #####################################
200 #####################################
202 name: 'daisy-recipients'
205 recipients: hu.zhijiang@zte.com.cn lu.yao135@zte.com.cn zhou.ya@zte.com.cn yangyang1@zte.com.cn julienjut@gmail.com
208 name: 'daisy-project-parameter'
211 name: BUILD_DIRECTORY
212 default: $WORKSPACE/build_output
213 description: "Directory where the build artifact will be located upon the completion of the build."
215 name: CACHE_DIRECTORY
216 default: $HOME/opnfv/cache/$INSTALLER_TYPE
217 description: "Directory where the cache to be used during the build is located."
220 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
221 description: "URL to Google Storage."