1 ####################################
2 # Job configuration for bottlenecks
3 ####################################
7 - 'bottlenecks-verify-{stream}'
8 - 'bottlenecks-daily-{installer}-{pod}-{stream}'
9 - 'bottlenecks-upload-artifacts-{stream}'
13 installer_type: 'fuel'
14 installer_ip: '10.20.0.2'
19 # only master branch is enabled at the moment to keep no of jobs sane
25 # branch: 'stable/brahmaputra'
26 # gs-pathname: '/brahmaputra'
28 project: 'bottlenecks'
29 ###############################
31 ##############################
33 name: 'bottlenecks-verify-{stream}'
40 - 'opnfv-build-defaults'
44 credentials-id: '{ssh-credentials}'
45 refspec: '$GERRIT_REFSPEC'
46 choosing-strategy: 'gerrit'
51 - patchset-created-event:
52 exclude-drafts: 'false'
53 exclude-trivial-rebase: 'false'
54 exclude-no-code-change: 'false'
55 - draft-published-event
56 - comment-added-contains-event:
57 comment-contains-value: 'recheck'
58 - comment-added-contains-event:
59 comment-contains-value: 'reverify'
61 - project-compare-type: 'ANT'
62 project-pattern: '{project}'
64 - branch-compare-type: 'ANT'
65 branch-pattern: '**/{branch}'
68 pattern: 'docs/**|.gitignore'
72 echo "Nothing to verify!"
75 name: 'bottlenecks-upload-artifacts-{stream}'
90 - 'ericsson-ca-build-1-defaults'
91 - 'bottlenecks-parameter'
95 credentials-id: '{ssh-credentials}'
100 - 'bottlenecks-builder-upload-artifact'
101 - 'bottlenecks-workspace-cleanup'
104 name: 'bottlenecks-daily-{installer}-{pod}-{stream}'
113 - 'opnfv-jump-2-defaults'
117 description: "POD where the job runs"
120 default: '{installer_type}'
121 description: "Installer name that is used for deployment."
124 default: '{installer_ip}'
125 description: "Installer IP."
127 name: GERRIT_REFSPEC_DEBUG
129 description: "Gerrit refspec for debug."
133 credentials-id: '{ssh-credentials}'
138 - 'bottlenecks-trigger-{pod}'
141 - 'bottlenecks-fetch-os-creds'
142 - 'bottlenecks-run-rubbos'
146 recipients: hongbo.tianhongbo@huawei.com matthew.lijun@huawei.com liangqi1@huawei.com
152 name: bottlenecks-parameter
156 default: $WORKSPACE/cache
157 description: "the cache to store packages downloaded from public IP"
160 default: http://artifacts.opnfv.org/bottlenecks/rubbos
161 description: "LF artifacts url for storage of bottlenecks packages"
164 default: http://205.177.226.235:9999/bottlenecks/rubbos/
165 description: "the url where we store the packages used for bottlenecks rubbos"
167 ###################################
168 #builders for bottlenecks project
169 ###################################
171 name: bottlenecks-fetch-os-creds
174 !include-raw ../../utils/fetch_os_creds.sh
177 name: bottlenecks-run-rubbos
183 echo "Bottlenecks: rubbos running now..."
185 ./ci/run.sh $GERRIT_REFSPEC_DEBUG
188 name: bottlenecks-builder-upload-artifact
194 echo "Bottlenecks: upload to artifacts from the public IP"
196 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
198 for file in $(curl -s $PACKAGE_URL |
202 grep '^[a-zA-Z].*'); do
203 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file
204 gsutil cp $CACHE_DIR/$file $RUBBOS_URL
208 name: bottlenecks-workspace-cleanup
214 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
216 /bin/rm -rf $WORKSPACE
218 #######################
220 #######################
222 name: 'bottlenecks-trigger-lf'
224 - timed: '0 16 * * *'
227 - patchset-created-event:
228 exclude-drafts: 'false'
229 exclude-trivial-rebase: 'false'
230 exclude-no-code-change: 'false'
231 - draft-published-event
232 - comment-added-contains-event:
233 comment-contains-value: 'recheck'
234 - comment-added-contains-event:
235 comment-contains-value: 'reverify'
237 - project-compare-type: 'ANT'
238 project-pattern: '{project}'
240 - branch-compare-type: 'ANT'
241 branch-pattern: '**/{branch}'
242 forbidden-file-paths:
244 pattern: 'docs/**|.gitignore'