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 ########################
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 # check if cirros-0.3.3 image is already available
224 # if not, create the image
225 echo "Yardstick: configure the image"
226 IMAGE_NAME=cirros-0.3.3
227 if ! nova image-show $IMAGE_NAME > /dev/null 2>&1; then
228 echo "Image $IMAGE_NAME doesn't exist. Creating image $IMAGE_NAME"
229 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
233 echo "Yardstick: setup virtualenv"
235 virtualenv $WORKSPACE/yardstick_venv
236 source $WORKSPACE/yardstick_venv/bin/activate
237 easy_install -U setuptools
238 python setup.py develop > /dev/null 2>&1
241 echo "Yardstick: execute ping scenario"
242 yardstick task start samples/ping.yaml -v -d
245 echo "Yardstick: cleanup"
246 glance image-delete $IMAGE_NAME
249 echo "Yardstick: done!"
252 name: yardstick-fetch-os-creds
255 !include-raw ../../utils/fetch_os_creds.sh