2 ###################################################
3 # Non-ci jobs for Bottlenecks project
4 # They will only be enabled on request by projects!
5 ###################################################
7 name: bottlenecks-project-jobs
12 - 'bottlenecks-verify-{stream}'
13 - 'bottlenecks-merge-{stream}'
14 - 'bottlenecks-{suite}-upload-artifacts-{stream}'
19 # This is used for common project file storage
21 # This is used for different test suite dependent packages storage
22 gs-packagepath: '/{suite}'
25 branch: 'stable/{stream}'
26 gs-pathname: '/{stream}'
27 gs-packagepath: '/{stream}/{suite}'
33 - 'posca_stress_traffic'
36 ################################
38 ################################
41 name: 'bottlenecks-verify-{stream}'
43 disabled: '{obj:disabled}'
49 - 'opnfv-build-ubuntu-defaults'
56 server-name: 'gerrit.opnfv.org'
58 - patchset-created-event:
59 exclude-drafts: 'false'
60 exclude-trivial-rebase: 'false'
61 exclude-no-code-change: 'false'
62 - draft-published-event
63 - comment-added-contains-event:
64 comment-contains-value: 'recheck'
65 - comment-added-contains-event:
66 comment-contains-value: 'reverify'
68 - project-compare-type: 'ANT'
69 project-pattern: '{project}'
71 - branch-compare-type: 'ANT'
72 branch-pattern: '**/{branch}'
76 - bottlenecks-unit-tests
79 name: 'bottlenecks-merge-{stream}'
81 disabled: '{obj:disabled}'
87 - 'opnfv-build-ubuntu-defaults'
94 server-name: 'gerrit.opnfv.org'
97 - comment-added-contains-event:
98 comment-contains-value: 'remerge'
100 - project-compare-type: 'ANT'
101 project-pattern: '{project}'
103 - branch-compare-type: 'ANT'
104 branch-pattern: '**/{branch}'
108 # - bottlenecks-unit-tests
111 name: 'bottlenecks-{suite}-upload-artifacts-{stream}'
114 disabled: '{obj:disabled}'
130 - 'opnfv-build-ubuntu-defaults'
131 - bottlenecks-parameter:
132 gs-packagepath: '{gs-packagepath}'
138 - 'bottlenecks-builder-upload-artifact'
139 - 'bottlenecks-workspace-cleanup'
145 name: bottlenecks-parameter
149 default: $WORKSPACE/cache{gs-packagepath}
150 description: "the cache to store packages downloaded from public IP"
153 default: gs://artifacts.opnfv.org/bottlenecks{gs-packagepath}
154 description: "LF artifacts url for storage of bottlenecks packages"
157 default: http://205.177.226.237:9999/bottlenecks{gs-packagepath}/
158 description: "the url where we store the packages used for bottlenecks rubbos"
160 ####################################
161 # builders for bottlenecks project
162 ####################################
164 name: bottlenecks-builder-upload-artifact
170 echo "Bottlenecks: upload to artifacts from the public IP"
172 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
174 for file in $(curl -s $PACKAGE_URL |
178 grep '^[a-zA-Z].*'); do
179 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
180 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
181 gsutil cp $CACHE_DIR/$file $SUITE_URL
185 name: bottlenecks-workspace-cleanup
191 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
193 /bin/rm -rf $CACHE_DIR
196 name: bottlenecks-unit-tests
203 echo "Running unit tests..."
205 virtualenv $WORKSPACE/bottlenecks_venv
206 source $WORKSPACE/bottlenecks_venv/bin/activate
208 # install python packages
209 easy_install -U setuptools
211 pip install -r $WORKSPACE/requirements/verify.txt
214 /bin/bash $WORKSPACE/verify.sh
219 name: bottlenecks-hello
225 echo -e "Wellcome to Bottlenecks! \nMerge event is planning to support more functions! "