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-fetch-os-creds'
177 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
179 ########################
181 ########################
183 name: yardstick-daily
189 echo "Yardstick: Run benchmark test suites ..."
191 # Remove old containers
192 docker ps | grep opnfv/yardstick |\
193 awk '{print $1}' | xargs -r docker stop &>/dev/null
194 docker ps -a | grep opnfv/yardstick |\
195 awk '{print $1}' | xargs -r docker rm &>/dev/null
197 # Remove existing images if exist
198 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
199 echo "Docker images to remove:"
200 docker images | head -1 && docker images | grep opnfv/yardstick
201 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
202 for tag in "${image_tags[@]}"; do
203 echo "Removing docker image opnfv/yardstick:$tag..."
204 docker rmi opnfv/yardstick:$tag
208 # Make sure we have latest image
209 docker pull opnfv/yardstick
212 TEST_SUITES=opnfv_${POD_NAME}_daily.yaml
218 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
219 -e "INSTALLER_IP=${INSTALLER_IP}" \
220 -e "POD_NAME=${POD_NAME}" \
221 -e "EXTERNAL_NETWORK=net04_ext" \
226 echo "Yardstick: done!"
229 name: yardstick-fetch-os-creds
232 !include-raw ../../utils/fetch_os_creds.sh
234 ########################
236 ########################
238 name: 'ericsson-parameters'
242 default: https://gerrit.opnfv.org/gerrit/$PROJECT
243 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
246 name: 'lf-parameters'
250 default: ssh://gerrit.opnfv.org:29418/$PROJECT
251 description: "URL for LF POD"
253 ########################
255 ########################
257 name: 'yardstick-trigger-ericsson'
262 name: 'yardstick-trigger-lf'
264 - timed: '#@midnight'