Commit | Line | Data |
---|---|---|
b3d73c46 FD |
1 | #!/bin/bash -xeu |
2 | # Copyright (C) 2016 - Francis Deslauriers <francis.deslauriers@efficios.com> | |
3 | # | |
4 | # This program is free software: you can redistribute it and/or modify | |
5 | # it under the terms of the GNU General Public License as published by | |
6 | # the Free Software Foundation, either version 3 of the License, or | |
7 | # (at your option) any later version. | |
8 | # | |
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. | |
13 | # | |
14 | # You should have received a copy of the GNU General Public License | |
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | ||
17 | touch properties.txt | |
b3d73c46 | 18 | |
6252703b JR |
19 | echo "# Setup endpoint |
20 | host_base = obj.internal.efficios.com | |
21 | host_bucket = obj.internal.efficios.com | |
22 | bucket_location = us-east-1 | |
23 | use_https = True | |
24 | ||
25 | # Setup access keys | |
26 | access_key = jenkins | |
27 | secret_key = echo123456 | |
28 | ||
29 | # Enable S3 v4 signature APIs | |
30 | signature_v2 = False" > "$WORKSPACE/s3cfg" | |
31 | ||
005e75b4 KS |
32 | echo "LAVA_HOST=$LAVA_HOST" >> properties.txt |
33 | echo "LAVA_PROTO=$LAVA_PROTO" >> properties.txt | |
34 | ||
b3d73c46 | 35 | LTTNG_CI_PATH="$WORKSPACE/src/lttng-ci" |
b3d73c46 | 36 | echo "LTTNG_CI_PATH=$LTTNG_CI_PATH" >> properties.txt |
ef50ca2a KS |
37 | echo "LTTNG_CI_REPO=$LTTNG_CI_REPO" >> properties.txt |
38 | echo "LTTNG_CI_BRANCH=$LTTNG_CI_BRANCH" >> properties.txt | |
b33f21f4 | 39 | KERNEL_COMMIT_ID=$KERNEL_TAG_ID |
b3d73c46 FD |
40 | |
41 | echo "KERNEL_COMMIT_ID=$KERNEL_COMMIT_ID" >> properties.txt | |
42 | echo "LTTNG_MODULES_COMMIT_ID=$LTTNG_MODULES_COMMIT_ID" >> properties.txt | |
43 | echo "LTTNG_TOOLS_COMMIT_ID=$LTTNG_TOOLS_COMMIT_ID" >> properties.txt | |
962ee225 | 44 | echo "LTTNG_UST_COMMIT_ID=$LTTNG_UST_COMMIT_ID" >> properties.txt |
b3d73c46 FD |
45 | |
46 | BASE_STORAGE_FOLDER="/storage/jenkins-lava/baremetal-tests" | |
47 | ||
b32d6f9c | 48 | echo "BASE_STORAGE_FOLDER=$BASE_STORAGE_FOLDER" >> properties.txt |
55758044 | 49 | echo "STORAGE_HOST=storage.internal.efficios.com" >> properties.txt |
b32d6f9c FD |
50 | echo "STORAGE_USER=jenkins-lava" >> properties.txt |
51 | ||
dc9700c9 | 52 | echo "BUILD_DEVICE=$BUILD_DEVICE" >> properties.txt |
9356eef7 | 53 | echo "LTTNG_VERSION=$LTTNG_VERSION" >> properties.txt |
b33f21f4 | 54 | echo "KGITREPO=$KERNEL_REPO" >> properties.txt |
89e673e7 | 55 | echo "LTTNG_MODULES_REPO=$LTTNG_MODULES_REPO" >> properties.txt |
6f3cac9a | 56 | echo "ROOTFS_URL=$ROOTFS_URL" >> properties.txt |
b3d73c46 | 57 | echo "STORAGE_KERNEL_FOLDER=$BASE_STORAGE_FOLDER/kernel" >> properties.txt |
962ee225 FD |
58 | echo "STORAGE_KERNEL_IMAGE=$BASE_STORAGE_FOLDER/kernel/$KERNEL_COMMIT_ID.$BUILD_DEVICE.bzImage" >> properties.txt |
59 | echo "STORAGE_LINUX_MODULES=$BASE_STORAGE_FOLDER/modules/linux/$KERNEL_COMMIT_ID.$BUILD_DEVICE.linux.modules.tar.gz" >> properties.txt | |
b33f21f4 | 60 | echo "STORAGE_LTTNG_MODULES=$BASE_STORAGE_FOLDER/modules/lttng/$KERNEL_COMMIT_ID-$LTTNG_MODULES_COMMIT_ID.$BUILD_DEVICE.lttng.modules.tar.gz" >> properties.txt |
6252703b | 61 | |
6d5c3948 | 62 | BASE_S3_STORAGE="lava" |
03f85ad3 JR |
63 | BASE_S3_URL="https://obj.internal.efficios.com" |
64 | ||
65 | S3_STORAGE_KERNEL_IMAGE=$BASE_S3_STORAGE/kernel/$KERNEL_COMMIT_ID.$BUILD_DEVICE.bzImage | |
66 | S3_STORAGE_LINUX_MODULES=$BASE_S3_STORAGE/modules/linux/$KERNEL_COMMIT_ID.$BUILD_DEVICE.linux.modules.tar.gz | |
67 | S3_STORAGE_LTTNG_MODULES=$BASE_S3_STORAGE/modules/lttng/$KERNEL_COMMIT_ID-$LTTNG_MODULES_COMMIT_ID.$BUILD_DEVICE.lttng.modules.tar.gz | |
6252703b JR |
68 | |
69 | echo "BASE_S3_STORAGE=$BASE_S3_STORAGE" >> properties.txt | |
07fc222e | 70 | echo "S3_STORAGE_KERNEL_FOLDER=$BASE_S3_STORAGE/kernel" >> properties.txt |
03f85ad3 JR |
71 | echo "S3_STORAGE_KERNEL_IMAGE=$S3_STORAGE_KERNEL_IMAGE" >> properties.txt |
72 | echo "S3_STORAGE_LINUX_MODULES=$S3_STORAGE_LINUX_MODULES" >> properties.txt | |
73 | echo "S3_STORAGE_LTTNG_MODULES=$S3_STORAGE_LTTNG_MODULES" >> properties.txt | |
74 | ||
75 | # Generate S3 https url directly | |
76 | echo "S3_URL_KERNEL_IMAGE=${BASE_S3_URL}/$S3_STORAGE_KERNEL_IMAGE" >> properties.txt | |
77 | echo "S3_URL_LINUX_MODULES=${BASE_S3_URL}/$S3_STORAGE_LINUX_MODULES" >> properties.txt | |
78 | echo "S3_URL_LTTNG_MODULES=${BASE_S3_URL}/$S3_STORAGE_LTTNG_MODULES" >> properties.txt |