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}'
30 branch: 'stable/{stream}'
31 gs-pathname: '/{stream}'
32 gs-packagepath: '/{stream}/{suite}'
36 - 'posca_stress_traffic'
39 ################################
41 ################################
44 name: 'bottlenecks-verify-{stream}'
46 disabled: '{obj:disabled}'
52 - 'opnfv-build-ubuntu-defaults'
59 server-name: 'gerrit.opnfv.org'
61 - patchset-created-event:
62 exclude-drafts: 'false'
63 exclude-trivial-rebase: 'false'
64 exclude-no-code-change: 'false'
65 - draft-published-event
66 - comment-added-contains-event:
67 comment-contains-value: 'recheck'
68 - comment-added-contains-event:
69 comment-contains-value: 'reverify'
71 - project-compare-type: 'ANT'
72 project-pattern: '{project}'
74 - branch-compare-type: 'ANT'
75 branch-pattern: '**/{branch}'
78 - bottlenecks-unit-tests
81 name: 'bottlenecks-merge-{stream}'
83 disabled: '{obj:disabled}'
89 - 'opnfv-build-ubuntu-defaults'
96 server-name: 'gerrit.opnfv.org'
99 - comment-added-contains-event:
100 comment-contains-value: 'remerge'
102 - project-compare-type: 'ANT'
103 project-pattern: '{project}'
105 - branch-compare-type: 'ANT'
106 branch-pattern: '**/{branch}'
112 name: 'bottlenecks-{suite}-upload-artifacts-{stream}'
115 disabled: '{obj:disabled}'
131 - 'opnfv-build-ubuntu-defaults'
132 - bottlenecks-parameter:
133 gs-packagepath: '{gs-packagepath}'
139 - 'bottlenecks-builder-upload-artifact'
140 - 'bottlenecks-artifact-workspace-cleanup'
146 name: bottlenecks-parameter
150 default: $WORKSPACE/cache{gs-packagepath}
151 description: "the cache to store packages downloaded from public IP"
154 default: gs://artifacts.opnfv.org/bottlenecks{gs-packagepath}
155 description: "LF artifacts url for storage of bottlenecks packages"
158 default: http://205.177.226.237:9999/bottlenecks{gs-packagepath}/
159 description: "the url where we store the packages used for bottlenecks\
162 ####################################
163 # builders for bottlenecks project
164 ####################################
166 name: bottlenecks-builder-upload-artifact
172 echo "Bottlenecks: upload to artifacts from the public IP"
174 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
176 for file in $(curl -s $PACKAGE_URL |
180 grep '^[a-zA-Z].*'); do
181 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
182 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
183 gsutil cp $CACHE_DIR/$file $SUITE_URL
187 name: bottlenecks-artifact-workspace-cleanup
193 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
195 /bin/rm -rf $CACHE_DIR
198 name: bottlenecks-unit-tests
205 echo "Running unit tests..."
207 virtualenv $WORKSPACE/bottlenecks_venv
208 source $WORKSPACE/bottlenecks_venv/bin/activate
210 # install python packages
211 easy_install -U setuptools
213 pip install -r $WORKSPACE/requirements/verify.txt
216 /bin/bash $WORKSPACE/verify.sh
221 name: bottlenecks-hello
227 echo -e "Wellcome to Bottlenecks! \nMerge event is planning to support more functions! "