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 | |
962ee225 FD |
19 | KERNEL_COMMIT_ID=$kernel_tag_id |
20 | LTTNG_MODULES_COMMIT_ID=$modules_commit_id | |
21 | LTTNG_TOOLS_COMMIT_ID=$tools_commit_id | |
22 | LTTNG_UST_COMMIT_ID=$ust_commit_id | |
b3d73c46 FD |
23 | |
24 | LTTNG_CI_PATH="$WORKSPACE/src/lttng-ci" | |
b3d73c46 | 25 | echo "LTTNG_CI_PATH=$LTTNG_CI_PATH" >> properties.txt |
b3d73c46 FD |
26 | |
27 | echo "KERNEL_COMMIT_ID=$KERNEL_COMMIT_ID" >> properties.txt | |
28 | echo "LTTNG_MODULES_COMMIT_ID=$LTTNG_MODULES_COMMIT_ID" >> properties.txt | |
29 | echo "LTTNG_TOOLS_COMMIT_ID=$LTTNG_TOOLS_COMMIT_ID" >> properties.txt | |
962ee225 | 30 | echo "LTTNG_UST_COMMIT_ID=$LTTNG_UST_COMMIT_ID" >> properties.txt |
b3d73c46 FD |
31 | |
32 | BASE_STORAGE_FOLDER="/storage/jenkins-lava/baremetal-tests" | |
33 | ||
b32d6f9c | 34 | echo "BASE_STORAGE_FOLDER=$BASE_STORAGE_FOLDER" >> properties.txt |
55758044 | 35 | echo "STORAGE_HOST=storage.internal.efficios.com" >> properties.txt |
b32d6f9c FD |
36 | echo "STORAGE_USER=jenkins-lava" >> properties.txt |
37 | ||
dc9700c9 | 38 | echo "BUILD_DEVICE=$BUILD_DEVICE" >> properties.txt |
962ee225 | 39 | echo "KGITREPO=$kernel_repo" >> properties.txt |
b3d73c46 | 40 | echo "STORAGE_KERNEL_FOLDER=$BASE_STORAGE_FOLDER/kernel" >> properties.txt |
962ee225 FD |
41 | echo "STORAGE_KERNEL_IMAGE=$BASE_STORAGE_FOLDER/kernel/$KERNEL_COMMIT_ID.$BUILD_DEVICE.bzImage" >> properties.txt |
42 | echo "STORAGE_LINUX_MODULES=$BASE_STORAGE_FOLDER/modules/linux/$KERNEL_COMMIT_ID.$BUILD_DEVICE.linux.modules.tar.gz" >> properties.txt | |
43 | echo "STORAGE_LTTNG_MODULES=$BASE_STORAGE_FOLDER/modules/lttng/i$KERNEL_COMMIT_ID-$LTTNG_MODULES_COMMIT_ID.$BUILD_DEVICE.lttng.modules.tar.gz" >> properties.txt |