5 - 'yardstick-daily-{stream}'
12 installer_type: 'fuel'
13 installer_ip: '10.20.0.2'
16 installer_type: 'foreman'
17 installer_ip: '172.30.10.73'
19 # stream: branch with - in place of / (eg. stable-helium)
20 # branch: branch (eg. stable/helium)
29 name: 'yardstick-daily-{stream}'
31 # Job template for daily builders
34 # stream: branch with - in place of / (eg. stable)
35 # branch: branch (eg. stable)
39 project-type: freestyle
40 varsetabove: '{somevar}'
43 daysToKeep: '{build-days-to-keep}'
44 numToKeep: '{build-num-to-keep}'
45 artifactDaysToKeep: '{build-artifact-days-to-keep}'
46 artifactNumToKeep: '{build-artifact-num-to-keep}'
53 default: https://gerrit.opnfv.org/gerrit/$PROJECT
54 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
58 credentials-id: '{ssh-credentials}'
63 - ssh-agent-credentials:
64 user: '{ssh-credentials}'
76 echo "Hello world from yardstick {somevar} daily"
82 name: 'yardstick-verify'
84 project-type: freestyle
91 artifactDaysToKeep: -1
101 default: https://gerrit.opnfv.org/gerrit/$PROJECT
102 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
105 - gerrit-trigger-scm:
106 credentials-id: '{ssh-credentials}'
107 refspec: '$GERRIT_REFSPEC'
108 choosing-strategy: 'gerrit'
111 - ssh-agent-credentials:
112 user: '{ssh-credentials}'
117 - patchset-created-event:
118 exclude-drafts: 'false'
119 exclude-trivial-rebase: 'false'
120 exclude-no-code-change: 'false'
121 - draft-published-event
122 - comment-added-contains-event:
123 comment-contains-value: 'recheck'
124 - comment-added-contains-event:
125 comment-contains-value: 'reverify'
127 - project-compare-type: 'ANT'
128 project-pattern: 'yardstick'
130 - branch-compare-type: 'ANT'
131 branch-pattern: '**/master'
139 echo "Running unit tests..."
141 virtualenv $WORKSPACE/yardstick_venv
142 source $WORKSPACE/yardstick_venv/bin/activate
143 easy_install -U setuptools
144 python setup.py develop
149 name: 'yardstick-merge'
151 # builder-merge job to run JJB update
153 # This job's purpose is to update all the JJB
155 project-type: freestyle
162 artifactDaysToKeep: -1
172 default: https://gerrit.opnfv.org/gerrit/$PROJECT
173 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
176 - gerrit-trigger-scm:
177 credentials-id: '{ssh-credentials}'
179 choosing-strategy: 'default'
182 - ssh-agent-credentials:
183 user: '{ssh-credentials}'
188 - change-merged-event
189 - comment-added-contains-event:
190 comment-contains-value: 'remerge'
192 - project-compare-type: 'ANT'
193 project-pattern: 'yardstick'
195 - branch-compare-type: 'ANT'
196 branch-pattern: '**/master'
204 echo "Running unit tests..."
206 virtualenv $WORKSPACE/yardstick_venv
207 source $WORKSPACE/yardstick_venv/bin/activate
208 easy_install -U setuptools
209 python setup.py develop
214 name: 'yardstick-{pod}'
216 project-type: freestyle
227 default: '{installer_type}'
228 description: "Installer name that is used for deployment."
231 default: '{installer_ip}'
232 description: "Installer IP."
236 credentials-id: '{ssh-credentials}'
243 artifactDaysToKeep: -1
244 artifactNumToKeep: -1
247 - 'yardstick-fetch-os-creds'
250 ########################
252 ########################
261 echo "Yardstick: prepare Yardstick environment"
263 # source openstack vars
264 if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
265 echo "Unable to access file $HOME/opnfv-openrc.sh"
268 source $HOME/opnfv-openrc.sh
270 # check if cirros-0.3.3 image is already available
271 # if not, create the image
272 echo "Yardstick: configure the image"
273 IMAGE_NAME=cirros-0.3.3
274 if [[ ! $(nova image-show $IMAGE_NAME > /dev/null 2>&1) ]]; then
275 echo "Image $IMAGE_NAME doesn't exist. Creating image $IMAGE_NAME"
276 glance image-create --name cirros-0.3.3 --is-public true --disk-format qcow2 --container-format bare --file $HOME/yardstick/cirros-0.3.3-x86_64-disk.img
278 echo "Image $IMAGE_NAME exists. Proceeding with yardstick."
282 echo "Yardstick: setup virtualenv"
284 virtualenv $WORKSPACE/yardstick_venv
285 source $WORKSPACE/yardstick_venv/bin/activate
286 python setup.py develop > /dev/null 2>&1
289 echo "Yardstick: execute ping scenario"
290 yardstick task start samples/ping.yaml -v -d
293 echo "Yardstick: cleanup"
294 glance image-delete $IMAGE_NAME
297 echo "Yardstick: done!"
300 name: yardstick-fetch-os-creds
303 !include-raw ../../utils/fetch_os_creds.sh