1 ###################################################
2 # Non-ci jobs for Bottlenecks project
3 # They will only be enabled on request by projects!
4 ###################################################
6 name: bottlenecks-project-jobs
11 - 'bottlenecks-verify-{stream}'
12 - 'bottlenecks-merge-{stream}'
13 - 'bottlenecks-{suite}-upload-artifacts-{stream}'
18 #This is used for common project file storage
20 #This is used for different test suite dependent packages storage
21 gs-packagepath: '/{suite}'
24 branch: 'stable/{stream}'
25 gs-pathname: '/{stream}'
26 gs-packagepath: '/{stream}/{suite}'
34 ################################
36 ################################
39 name: 'bottlenecks-verify-{stream}'
41 disabled: '{obj:disabled}'
47 - 'opnfv-build-ubuntu-defaults'
54 server-name: 'gerrit.opnfv.org'
56 - patchset-created-event:
57 exclude-drafts: 'false'
58 exclude-trivial-rebase: 'false'
59 exclude-no-code-change: 'false'
60 - draft-published-event
61 - comment-added-contains-event:
62 comment-contains-value: 'recheck'
63 - comment-added-contains-event:
64 comment-contains-value: 'reverify'
66 - project-compare-type: 'ANT'
67 project-pattern: '{project}'
69 - branch-compare-type: 'ANT'
70 branch-pattern: '**/{branch}'
73 #- bottlenecks-unit-tests
76 name: 'bottlenecks-merge-{stream}'
78 disabled: '{obj:disabled}'
84 - 'opnfv-build-ubuntu-defaults'
91 server-name: 'gerrit.opnfv.org'
94 - comment-added-contains-event:
95 comment-contains-value: 'remerge'
97 - project-compare-type: 'ANT'
98 project-pattern: '{project}'
100 - branch-compare-type: 'ANT'
101 branch-pattern: '**/{branch}'
105 #- bottlenecks-unit-tests
108 name: 'bottlenecks-{suite}-upload-artifacts-{stream}'
111 disabled: '{obj:disabled}'
127 - 'opnfv-build-ubuntu-defaults'
128 - bottlenecks-parameter:
129 gs-packagepath: '{gs-packagepath}'
135 - 'bottlenecks-builder-upload-artifact'
136 - 'bottlenecks-workspace-cleanup'
142 name: bottlenecks-parameter
146 default: $WORKSPACE/cache{gs-packagepath}
147 description: "the cache to store packages downloaded from public IP"
150 default: gs://artifacts.opnfv.org/bottlenecks{gs-packagepath}
151 description: "LF artifacts url for storage of bottlenecks packages"
154 default: http://205.177.226.237:9999/bottlenecks{gs-packagepath}/
155 description: "the url where we store the packages used for bottlenecks rubbos"
157 ####################################
158 #builders for bottlenecks project
159 ####################################
161 name: bottlenecks-builder-upload-artifact
167 echo "Bottlenecks: upload to artifacts from the public IP"
169 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
171 for file in $(curl -s $PACKAGE_URL |
175 grep '^[a-zA-Z].*'); do
176 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
177 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
178 gsutil cp $CACHE_DIR/$file $SUITE_URL
182 name: bottlenecks-workspace-cleanup
188 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
190 /bin/rm -rf $CACHE_DIR
193 name: bottlenecks-unit-tests
200 echo "Running unit tests..."
202 virtualenv $WORKSPACE/bottlenecks_venv
203 source $WORKSPACE/bottlenecks_venv/bin/activate
205 # install python packages
206 easy_install -U setuptools
208 pip install -r requirements.txt
211 /bin/bash $WORKSPACE/tests.sh
216 name: bottlenecks-hello