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."
129 credentials-id: '{ssh-credentials}'
134 - 'bottlenecks-trigger-{pod}'
137 - 'bottlenecks-fetch-os-creds'
138 #- 'run-rubbos-env-preparation'
139 - 'bottlenecks-instance-creation'
140 #- 'run-rubbos-tools-installation'
145 recipients: hongbo.tianhongbo@huawei.com matthew.lijun@huawei.com
151 name: bottlenecks-parameter
155 default: $WORKSPACE/cache
156 description: "the cache to store packages downloaded from public IP"
159 default: http://artifacts.opnfv.org/bottlenecks/rubbos
160 description: "LF artifacts url for storage of bottlenecks packages"
163 default: http://205.177.226.235:9999/bottlenecks/rubbos/
164 description: "the url where we store the packages used for bottlenecks rubbos"
166 ###################################
167 #builders for bottlenecks project
168 ###################################
170 name: bottlenecks-fetch-os-creds
173 !include-raw ../../utils/fetch_os_creds.sh
176 name: run-rubbos-env-preparation
182 echo "Bottlenecks: export openstack parameters before rubbos running"
185 ./rubbos/rubbos_scripts/1-1-1/scripts/env_preparation.sh
188 name: bottlenecks-instance-creation
194 echo "Bottlenecks: instance creation by using heat template"
196 ./utils/infra_setup/heat_template/HOT_create_instance.sh
199 name: run-rubbos-tools-installation
205 echo "Bottlenecks: to install tools to run rubbos"
208 cd rubbos/rubbos_scripts/1-1-1
209 source set_bottlenecks_rubbos_env.sh
210 ./rubbos/rubbos_scripts/1-1-1/scripts/run.sh
219 echo "Bottlenecks: rubbos execution"
222 cd ./rubbos/rubbos_scripts/1-1-1
223 source set_bottlenecks_rubbos_env.sh
225 ./tmp/CONTROL_rubbos_exec.sh
228 name: bottlenecks-builder-upload-artifact
234 echo "Bottlenecks: upload to artifacts from the public IP"
236 [[ -d $CACHE_DIR ]] || mkdir -p $CACHE_DIR
238 for file in $(curl -s $PACKAGE_URL |
242 grep '^[a-zA-Z].*'); do
243 curl --connect-timeout 10 -o $CACHE_DIR/$file $PACKAGE_URL$file
244 gsutil cp $CACHE_DIR/$file $RUBBOS_URL
248 name: bottlenecks-workspace-cleanup
254 echo "Bottlenecks: cleanup cache used for storage downloaded packages"
256 /bin/rm -rf $WORKSPACE
258 #######################
260 #######################
262 name: 'bottlenecks-trigger-lf'