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}'
33 ################################
35 ################################
38 name: 'bottlenecks-verify-{stream}'
40 disabled: '{obj:disabled}'
46 - 'opnfv-build-ubuntu-defaults'
53 server-name: 'gerrit.opnfv.org'
55 - patchset-created-event:
56 exclude-drafts: 'false'
57 exclude-trivial-rebase: 'false'
58 exclude-no-code-change: 'false'
59 - draft-published-event
60 - comment-added-contains-event:
61 comment-contains-value: 'recheck'
62 - comment-added-contains-event:
63 comment-contains-value: 'reverify'
65 - project-compare-type: 'ANT'
66 project-pattern: '{project}'
68 - branch-compare-type: 'ANT'
69 branch-pattern: '**/{branch}'
72 #- bottlenecks-unit-tests
75 name: 'bottlenecks-merge-{stream}'
77 disabled: '{obj:disabled}'
83 - 'opnfv-build-ubuntu-defaults'
90 server-name: 'gerrit.opnfv.org'
93 - comment-added-contains-event:
94 comment-contains-value: 'remerge'
96 - project-compare-type: 'ANT'
97 project-pattern: '{project}'
99 - branch-compare-type: 'ANT'
100 branch-pattern: '**/{branch}'
104 #- bottlenecks-unit-tests
107 name: 'bottlenecks-{suite}-upload-artifacts-{stream}'
110 disabled: '{obj:disabled}'
126 - 'opnfv-build-ubuntu-defaults'
127 - bottlenecks-parameter:
128 gs-packagepath: '{gs-packagepath}'
134 - 'bottlenecks-builder-upload-artifact'
135 - 'bottlenecks-workspace-cleanup'
141 name: bottlenecks-parameter
145 default: $WORKSPACE/cache{gs-packagepath}
146 description: "the cache to store packages downloaded from public IP"
149 default: gs://artifacts.opnfv.org/bottlenecks{gs-packagepath}
150 description: "LF artifacts url for storage of bottlenecks packages"
153 default: http://205.177.226.237:9999/bottlenecks{gs-packagepath}/
154 description: "the url where we store the packages used for bottlenecks rubbos"
156 ####################################
157 #builders for bottlenecks project
158 ####################################
160 name: bottlenecks-builder-upload-artifact
166 echo "Bottlenecks: upload to artifacts from the public IP"
168 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
170 for file in $(curl -s $PACKAGE_URL |
174 grep '^[a-zA-Z].*'); do
175 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
176 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
177 gsutil cp $CACHE_DIR/$file $SUITE_URL
181 name: bottlenecks-workspace-cleanup
187 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
189 /bin/rm -rf $CACHE_DIR
192 name: bottlenecks-unit-tests
199 echo "Running unit tests..."
201 virtualenv $WORKSPACE/bottlenecks_venv
202 source $WORKSPACE/bottlenecks_venv/bin/activate
204 # install python packages
205 easy_install -U setuptools
207 pip install -r requirements.txt
210 /bin/bash $WORKSPACE/tests.sh
215 name: bottlenecks-hello