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}'
32 - 'posca_stress_traffic'
35 ################################
37 ################################
40 name: 'bottlenecks-verify-{stream}'
42 disabled: '{obj:disabled}'
48 - 'opnfv-build-ubuntu-defaults'
55 server-name: 'gerrit.opnfv.org'
57 - patchset-created-event:
58 exclude-drafts: 'false'
59 exclude-trivial-rebase: 'false'
60 exclude-no-code-change: 'false'
61 - draft-published-event
62 - comment-added-contains-event:
63 comment-contains-value: 'recheck'
64 - comment-added-contains-event:
65 comment-contains-value: 'reverify'
67 - project-compare-type: 'ANT'
68 project-pattern: '{project}'
70 - branch-compare-type: 'ANT'
71 branch-pattern: '**/{branch}'
74 #- bottlenecks-unit-tests
77 name: 'bottlenecks-merge-{stream}'
79 disabled: '{obj:disabled}'
85 - 'opnfv-build-ubuntu-defaults'
92 server-name: 'gerrit.opnfv.org'
95 - comment-added-contains-event:
96 comment-contains-value: 'remerge'
98 - project-compare-type: 'ANT'
99 project-pattern: '{project}'
101 - branch-compare-type: 'ANT'
102 branch-pattern: '**/{branch}'
106 #- bottlenecks-unit-tests
109 name: 'bottlenecks-{suite}-upload-artifacts-{stream}'
112 disabled: '{obj:disabled}'
128 - 'opnfv-build-ubuntu-defaults'
129 - bottlenecks-parameter:
130 gs-packagepath: '{gs-packagepath}'
136 - 'bottlenecks-builder-upload-artifact'
137 - 'bottlenecks-workspace-cleanup'
143 name: bottlenecks-parameter
147 default: $WORKSPACE/cache{gs-packagepath}
148 description: "the cache to store packages downloaded from public IP"
151 default: gs://artifacts.opnfv.org/bottlenecks{gs-packagepath}
152 description: "LF artifacts url for storage of bottlenecks packages"
155 default: http://205.177.226.237:9999/bottlenecks{gs-packagepath}/
156 description: "the url where we store the packages used for bottlenecks rubbos"
158 ####################################
159 #builders for bottlenecks project
160 ####################################
162 name: bottlenecks-builder-upload-artifact
168 echo "Bottlenecks: upload to artifacts from the public IP"
170 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
172 for file in $(curl -s $PACKAGE_URL |
176 grep '^[a-zA-Z].*'); do
177 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
178 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
179 gsutil cp $CACHE_DIR/$file $SUITE_URL
183 name: bottlenecks-workspace-cleanup
189 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
191 /bin/rm -rf $CACHE_DIR
194 name: bottlenecks-unit-tests
201 echo "Running unit tests..."
203 virtualenv $WORKSPACE/bottlenecks_venv
204 source $WORKSPACE/bottlenecks_venv/bin/activate
206 # install python packages
207 easy_install -U setuptools
209 pip install -r requirements.txt
212 /bin/bash $WORKSPACE/tests.sh
217 name: bottlenecks-hello