8 installer_ip: '10.20.0.2'
11 installer_type: 'foreman'
12 installer_ip: '172.30.10.73'
15 - 'yardstick-{installer}-{stream}'
19 # stream: branch with - in place of / (eg. stable-helium)
20 # branch: branch (eg. stable/helium)
31 name: 'yardstick-verify'
33 project-type: freestyle
40 artifactDaysToKeep: -1
50 default: https://gerrit.opnfv.org/gerrit/$PROJECT
51 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
55 credentials-id: '{ssh-credentials}'
56 refspec: '$GERRIT_REFSPEC'
57 choosing-strategy: 'gerrit'
60 - ssh-agent-credentials:
61 user: '{ssh-credentials}'
66 - patchset-created-event:
67 exclude-drafts: 'false'
68 exclude-trivial-rebase: 'false'
69 exclude-no-code-change: 'false'
70 - draft-published-event
71 - comment-added-contains-event:
72 comment-contains-value: 'recheck'
73 - comment-added-contains-event:
74 comment-contains-value: 'reverify'
76 - project-compare-type: 'ANT'
77 project-pattern: 'yardstick'
79 - branch-compare-type: 'ANT'
80 branch-pattern: '**/master'
88 echo "Running unit tests..."
90 virtualenv $WORKSPACE/yardstick_venv
91 source $WORKSPACE/yardstick_venv/bin/activate
92 easy_install -U setuptools
93 python setup.py develop
98 name: 'yardstick-merge'
100 # builder-merge job to run JJB update
102 # This job's purpose is to update all the JJB
104 project-type: freestyle
111 artifactDaysToKeep: -1
121 default: https://gerrit.opnfv.org/gerrit/$PROJECT
122 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
125 - gerrit-trigger-scm:
126 credentials-id: '{ssh-credentials}'
128 choosing-strategy: 'default'
131 - ssh-agent-credentials:
132 user: '{ssh-credentials}'
137 - change-merged-event
138 - comment-added-contains-event:
139 comment-contains-value: 'remerge'
141 - project-compare-type: 'ANT'
142 project-pattern: 'yardstick'
144 - branch-compare-type: 'ANT'
145 branch-pattern: '**/master'
153 echo "Running unit tests..."
155 virtualenv $WORKSPACE/yardstick_venv
156 source $WORKSPACE/yardstick_venv/bin/activate
157 easy_install -U setuptools
158 python setup.py develop
163 name: 'yardstick-{installer}-{stream}'
165 project-type: freestyle
176 default: '{installer_type}'
177 description: "Installer name that is used for deployment."
180 default: '{installer_ip}'
181 description: "Installer IP."
185 credentials-id: '{ssh-credentials}'
192 artifactDaysToKeep: -1
193 artifactNumToKeep: -1
196 - 'yardstick-fetch-os-creds'
201 recipients: ana.cunha@ericsson.com
203 ########################
205 ########################
207 name: yardstick-daily
214 echo "Yardstick: prepare Yardstick environment"
216 # source openstack vars
217 if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
218 echo "Unable to access file $HOME/opnfv-openrc.sh"
221 source $HOME/opnfv-openrc.sh
223 # Emergency fix for glance '--is-public' error.
224 # TODO: This should maybe go into openrc instead!?
225 export OS_IMAGE_API_VERSION=1
228 echo "Yardstick: setup virtualenv"
230 virtualenv $WORKSPACE/yardstick_venv
231 source $WORKSPACE/yardstick_venv/bin/activate
232 easy_install -U setuptools
233 python setup.py develop > /dev/null 2>&1
235 echo "Yardstick: configure the images"
236 # check if cirros-0.3.3 image is already available
237 # if not, create the image
238 IMAGE_NAMES[0]=cirros-0.3.3
239 if ! nova image-show ${IMAGE_NAMES[0]} > /dev/null 2>&1; then
240 echo "Image ${IMAGE_NAMES[0]} doesn't exist. Creating image ${IMAGE_NAMES[0]}"
241 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
244 # check if yardstick-trusty image is already available
245 # if not, create the image to $WORKSPACE
246 IMAGE_NAMES[1]=yardstick-trusty-server
247 if ! nova image-show ${IMAGE_NAMES[1]} > /dev/null 2>&1; then
248 echo "Image ${IMAGE_NAMES[1]} doesn't exist. Creating image ${IMAGE_NAMES[1]}"
249 sudo yardstick-img-modify $WORKSPACE/tools/ubuntu-server-cloudimg-modify.sh
250 glance image-create --name yardstick-trusty-server --is-public true --disk-format qcow2 --container-format bare --file $WORKSPACE/yardstick-trusty-server.img
254 echo "Yardstick: execute scenarios"
258 echo "Yardstick: cleanup"
259 for IMAGE_NAME in ${IMAGE_NAMES[@]}
261 glance image-delete $IMAGE_NAME
265 echo "Yardstick: done!"
268 name: yardstick-fetch-os-creds
271 !include-raw ../../utils/fetch_os_creds.sh