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}'
31 - 'posca_stress_traffic'
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}'
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-artifact-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\
159 ####################################
160 # builders for bottlenecks project
161 ####################################
163 name: bottlenecks-builder-upload-artifact
169 echo "Bottlenecks: upload to artifacts from the public IP"
171 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
173 for file in $(curl -s $PACKAGE_URL |
177 grep '^[a-zA-Z].*'); do
178 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
179 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
180 gsutil cp $CACHE_DIR/$file $SUITE_URL
184 name: bottlenecks-artifact-workspace-cleanup
190 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
192 /bin/rm -rf $CACHE_DIR
195 name: bottlenecks-unit-tests
202 echo "Running unit tests..."
204 virtualenv $WORKSPACE/bottlenecks_venv
205 source $WORKSPACE/bottlenecks_venv/bin/activate
207 # install python packages
208 easy_install -U setuptools
210 pip install -r $WORKSPACE/requirements/verify.txt
213 /bin/bash $WORKSPACE/verify.sh
218 name: bottlenecks-hello
224 echo -e "Wellcome to Bottlenecks! \nMerge event is planning to support more functions! "