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}'
79 - bottlenecks-unit-tests
82 name: 'bottlenecks-merge-{stream}'
84 disabled: '{obj:disabled}'
90 - 'opnfv-build-ubuntu-defaults'
97 server-name: 'gerrit.opnfv.org'
100 - comment-added-contains-event:
101 comment-contains-value: 'remerge'
103 - project-compare-type: 'ANT'
104 project-pattern: '{project}'
106 - branch-compare-type: 'ANT'
107 branch-pattern: '**/{branch}'
111 # - bottlenecks-unit-tests
114 name: 'bottlenecks-{suite}-upload-artifacts-{stream}'
117 disabled: '{obj:disabled}'
133 - 'opnfv-build-ubuntu-defaults'
134 - bottlenecks-parameter:
135 gs-packagepath: '{gs-packagepath}'
141 - 'bottlenecks-builder-upload-artifact'
142 - 'bottlenecks-artifact-workspace-cleanup'
148 name: bottlenecks-parameter
152 default: $WORKSPACE/cache{gs-packagepath}
153 description: "the cache to store packages downloaded from public IP"
156 default: gs://artifacts.opnfv.org/bottlenecks{gs-packagepath}
157 description: "LF artifacts url for storage of bottlenecks packages"
160 default: http://205.177.226.237:9999/bottlenecks{gs-packagepath}/
161 description: "the url where we store the packages used for bottlenecks\
164 ####################################
165 # builders for bottlenecks project
166 ####################################
168 name: bottlenecks-builder-upload-artifact
174 echo "Bottlenecks: upload to artifacts from the public IP"
176 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
178 for file in $(curl -s $PACKAGE_URL |
182 grep '^[a-zA-Z].*'); do
183 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
184 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
185 gsutil cp $CACHE_DIR/$file $SUITE_URL
189 name: bottlenecks-artifact-workspace-cleanup
195 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
197 /bin/rm -rf $CACHE_DIR
200 name: bottlenecks-unit-tests
207 echo "Running unit tests..."
209 virtualenv $WORKSPACE/bottlenecks_venv
210 source $WORKSPACE/bottlenecks_venv/bin/activate
212 # install python packages
213 easy_install -U setuptools
215 pip install -r $WORKSPACE/requirements/verify.txt
218 /bin/bash $WORKSPACE/verify.sh
223 name: bottlenecks-hello
229 echo -e "Wellcome to Bottlenecks! \nMerge event is planning to support more functions! "