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}'
92 - 'ericsson-build-defaults'
93 - bottlenecks-parameter:
94 gs-pathname: '{gs-pathname}'
99 credentials-id: '{ssh-credentials}'
104 - 'bottlenecks-builder-upload-artifact'
105 - 'bottlenecks-workspace-cleanup'
108 name: 'bottlenecks-daily-{installer}-{suite}-{pod}-{stream}'
117 - 'opnfv-jump-2-defaults'
121 description: "POD where the job runs"
124 default: '{installer_type}'
125 description: "Installer name that is used for deployment."
128 default: '{installer_ip}'
129 description: "Installer IP."
131 name: GERRIT_REFSPEC_DEBUG
133 description: "Gerrit refspec for debug."
137 credentials-id: '{ssh-credentials}'
147 - 'bottlenecks-trigger-{pod}'
150 - 'bottlenecks-fetch-os-creds'
151 - 'bottlenecks-run-{suite}'
155 recipients: hongbo.tianhongbo@huawei.com matthew.lijun@huawei.com liangqi1@huawei.com liyiting@huawei.com
161 name: bottlenecks-parameter
165 default: $WORKSPACE/cache/{suite}
166 description: "the cache to store packages downloaded from public IP"
169 default: gs://artifacts.opnfv.org/bottlenecks/{suite}{gs-pathname}
170 description: "LF artifacts url for storage of bottlenecks packages"
173 default: http://205.177.226.237:9999/bottlenecks/{suite}/
174 description: "the url where we store the packages used for bottlenecks rubbos"
176 ###################################
177 #builders for bottlenecks project
178 ###################################
180 name: bottlenecks-fetch-os-creds
183 !include-raw: ../../utils/fetch_os_creds.sh
186 name: bottlenecks-run-rubbos
192 echo "Bottlenecks: rubbos running now..."
194 ./ci/run.sh $GERRIT_REFSPEC_DEBUG
197 name: bottlenecks-run-vstf
203 echo "Bottlenecks: vstf running now..."
205 ./ci/vstf_run.sh $GERRIT_REFSPEC_DEBUG
207 name: bottlenecks-builder-upload-artifact
213 echo "Bottlenecks: upload to artifacts from the public IP"
215 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
217 for file in $(curl -s $PACKAGE_URL |
221 grep '^[a-zA-Z].*'); do
222 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file -v
223 echo "bottlenecks: copy file $CACHE_DIR/$file to $SUITE_URL"
224 gsutil cp $CACHE_DIR/$file $SUITE_URL
228 name: bottlenecks-workspace-cleanup
234 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
236 /bin/rm -rf $CACHE_DIR
238 #######################
240 #######################
242 name: 'bottlenecks-trigger-lf'
244 # - timed: '0 6 * * *'
247 - patchset-created-event:
248 exclude-drafts: 'false'
249 exclude-trivial-rebase: 'false'
250 exclude-no-code-change: 'false'
251 - draft-published-event
252 - comment-added-contains-event:
253 comment-contains-value: 'recheck'
254 - comment-added-contains-event:
255 comment-contains-value: 'reverify'
257 - project-compare-type: 'ANT'
258 project-pattern: '{project}'
260 - branch-compare-type: 'ANT'
261 branch-pattern: '**/{branch}'
262 forbidden-file-paths:
264 pattern: 'docs/**|.gitignore'