1 ####################################
2 # Job configuration for bottlenecks
3 ####################################
7 - 'bottlenecks-verify-{stream}'
8 - 'bottlenecks-daily-{installer}-{suite}-{pod}-{stream}'
9 - 'bottlenecks-{suite}-upload-artifacts-{stream}'
13 installer_type: 'fuel'
14 installer_ip: '10.20.0.2'
23 # only master branch is enabled at the moment to keep no of jobs sane
29 # branch: 'stable/{stream}'
30 # gs-pathname: '/{stream}'
32 project: 'bottlenecks'
33 ###############################
35 ##############################
37 name: 'bottlenecks-verify-{stream}'
44 - 'opnfv-build-defaults'
48 credentials-id: '{ssh-credentials}'
49 refspec: '$GERRIT_REFSPEC'
50 choosing-strategy: 'gerrit'
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 pattern: 'docs/**|.gitignore'
76 echo "Nothing to verify!"
79 name: 'bottlenecks-{suite}-upload-artifacts-{stream}'
94 - 'ericsson-ca-build-1-defaults'
95 - bottlenecks-parameter:
96 gs-pathname: '{gs-pathname}'
101 credentials-id: '{ssh-credentials}'
106 - 'bottlenecks-builder-upload-artifact'
107 - 'bottlenecks-workspace-cleanup'
110 name: 'bottlenecks-daily-{installer}-{suite}-{pod}-{stream}'
119 - 'opnfv-jump-2-defaults'
123 description: "POD where the job runs"
126 default: '{installer_type}'
127 description: "Installer name that is used for deployment."
130 default: '{installer_ip}'
131 description: "Installer IP."
133 name: GERRIT_REFSPEC_DEBUG
135 description: "Gerrit refspec for debug."
139 credentials-id: '{ssh-credentials}'
149 - 'bottlenecks-trigger-{pod}'
152 - 'bottlenecks-fetch-os-creds'
153 - 'bottlenecks-run-{suite}'
157 recipients: hongbo.tianhongbo@huawei.com matthew.lijun@huawei.com liangqi1@huawei.com liyiting@huawei.com
163 name: bottlenecks-parameter
167 default: $WORKSPACE/cache/{suite}
168 description: "the cache to store packages downloaded from public IP"
171 default: gs://artifacts.opnfv.org/bottlenecks/{suite}{gs-pathname}
172 description: "LF artifacts url for storage of bottlenecks packages"
175 default: http://205.177.226.237:9999/bottlenecks/{suite}/
176 description: "the url where we store the packages used for bottlenecks rubbos"
178 ###################################
179 #builders for bottlenecks project
180 ###################################
182 name: bottlenecks-fetch-os-creds
185 !include-raw ../../utils/fetch_os_creds.sh
188 name: bottlenecks-run-rubbos
194 echo "Bottlenecks: rubbos running now..."
196 ./ci/run.sh $GERRIT_REFSPEC_DEBUG
199 name: bottlenecks-run-vstf
205 echo "Bottlenecks: vstf running now..."
207 ./ci/vstf_run.sh $GERRIT_REFSPEC_DEBUG
209 name: bottlenecks-builder-upload-artifact
215 echo "Bottlenecks: upload to artifacts from the public IP"
217 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
219 for file in $(curl -s $PACKAGE_URL |
223 grep '^[a-zA-Z].*'); do
224 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
225 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
226 gsutil cp $CACHE_DIR/$file $SUITE_URL
230 name: bottlenecks-workspace-cleanup
236 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
238 /bin/rm -rf $CACHE_DIR
240 #######################
242 #######################
244 name: 'bottlenecks-trigger-lf'
249 - patchset-created-event:
250 exclude-drafts: 'false'
251 exclude-trivial-rebase: 'false'
252 exclude-no-code-change: 'false'
253 - draft-published-event
254 - comment-added-contains-event:
255 comment-contains-value: 'recheck'
256 - comment-added-contains-event:
257 comment-contains-value: 'reverify'
259 - project-compare-type: 'ANT'
260 project-pattern: '{project}'
262 - branch-compare-type: 'ANT'
263 branch-pattern: '**/{branch}'
264 forbidden-file-paths:
266 pattern: 'docs/**|.gitignore'