10 installer_ip: '10.20.0.2'
13 installer_type: 'fuel'
14 installer_ip: '10.20.0.2'
20 - 'yardstick-{installer}-{pod}-{stream}'
24 # stream: branch with - in place of / (eg. stable-helium)
25 # branch: branch (eg. stable/helium)
31 name: 'yardstick-verify'
42 default: https://gerrit.opnfv.org/gerrit/$PROJECT
43 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
47 credentials-id: '{ssh-credentials}'
48 refspec: '$GERRIT_REFSPEC'
49 choosing-strategy: 'gerrit'
54 - patchset-created-event:
55 exclude-drafts: 'false'
56 exclude-trivial-rebase: 'false'
57 exclude-no-code-change: 'false'
58 - draft-published-event
59 - comment-added-contains-event:
60 comment-contains-value: 'recheck'
61 - comment-added-contains-event:
62 comment-contains-value: 'reverify'
64 - project-compare-type: 'ANT'
65 project-pattern: 'yardstick'
67 - branch-compare-type: 'ANT'
68 branch-pattern: '**/master'
76 echo "Running unit tests..."
78 virtualenv $WORKSPACE/yardstick_venv
79 source $WORKSPACE/yardstick_venv/bin/activate
80 easy_install -U setuptools
81 python setup.py develop
86 name: 'yardstick-merge'
88 # builder-merge job to run JJB update
90 # This job's purpose is to update all the JJB
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}'
108 choosing-strategy: 'default'
113 - change-merged-event
114 - comment-added-contains-event:
115 comment-contains-value: 'remerge'
117 - project-compare-type: 'ANT'
118 project-pattern: 'yardstick'
120 - branch-compare-type: 'ANT'
121 branch-pattern: '**/master'
129 echo "Running unit tests..."
131 virtualenv $WORKSPACE/yardstick_venv
132 source $WORKSPACE/yardstick_venv/bin/activate
133 easy_install -U setuptools
134 python setup.py develop
139 name: 'yardstick-{installer}-{pod}-{stream}'
152 description: "POD where the job runs"
155 default: '{installer_type}'
156 description: "Installer name that is used for deployment."
159 default: '{installer_ip}'
160 description: "Installer IP."
164 credentials-id: '{ssh-credentials}'
169 - 'yardstick-trigger-{pod}'
172 - 'yardstick-cleanup'
173 - 'yardstick-fetch-os-creds'
178 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
180 ########################
182 ########################
184 name: yardstick-daily
190 echo "Yardstick: Run benchmark test suites ..."
192 # Pull the latest image
193 docker pull opnfv/yardstick
196 TEST_SUITES=opnfv_${POD_NAME}_daily.yaml
202 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
203 -e "INSTALLER_IP=${INSTALLER_IP}" \
204 -e "POD_NAME=${POD_NAME}" \
205 -e "EXTERNAL_NETWORK=net04_ext" \
210 echo "Yardstick: done!"
213 name: yardstick-fetch-os-creds
216 !include-raw ../../utils/fetch_os_creds.sh
219 name: yardstick-cleanup
224 echo "Cleaning up docker containers/images..."
226 # Remove previous running containers if exist
227 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
228 echo "Removing existing opnfv/yardstick containers..."
229 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
230 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
233 # Remove existing images if exist
234 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
235 echo "Docker images to remove:"
236 docker images | head -1 && docker images | grep opnfv/yardstick
237 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
238 for tag in "${image_tags[@]}"; do
239 echo "Removing docker image opnfv/yardstick:$tag..."
240 docker rmi opnfv/yardstick:$tag
244 ########################
246 ########################
248 name: 'ericsson-parameters'
252 default: https://gerrit.opnfv.org/gerrit/$PROJECT
253 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
256 name: 'lf-parameters'
260 default: ssh://gerrit.opnfv.org:29418/$PROJECT
261 description: "URL for LF POD"
263 ########################
265 ########################
267 name: 'yardstick-trigger-ericsson'
272 name: 'yardstick-trigger-lf'
274 - timed: '#@midnight'