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 | |
18 | ||
19 | # Use all CPU cores | |
20 | NPROC=$(nproc) | |
21 | echo "NPROC=$NPROC" >> properties.txt | |
22 | ||
23 | LTTNG_CI_PATH="$WORKSPACE/src/lttng-ci" | |
24 | LINUX_PATH="$WORKSPACE/src/linux" | |
25 | LTTNG_MODULES_PATH="$WORKSPACE/src/lttng-modules" | |
26 | ||
27 | echo "LTTNG_MODULES_GIT=git://git-mirror.internal.efficios.com/lttng/lttng-modules.git" >> properties.txt | |
28 | echo "LTTNG_CI_PATH=$LTTNG_CI_PATH" >> properties.txt | |
29 | echo "LINUX_PATH=$LINUX_PATH" >> properties.txt | |
30 | echo "LTTNG_MODULES_PATH=$LTTNG_MODULES_PATH" >> properties.txt | |
31 | ||
32 | DEPLOYDIR="$WORKSPACE/deploy" | |
33 | MODULES_INSTALL_FOLDER="$DEPLOYDIR/modules" | |
34 | ||
35 | echo "DEPLOYDIR=$DEPLOYDIR" >> properties.txt | |
36 | echo "MODULES_INSTALL_FOLDER=$MODULES_INSTALL_FOLDER" >> properties.txt | |
37 | ||
38 | BUILD_NAME="$KERNEL_COMMIT_ID-$LTTNG_MODULES_COMMIT_ID" | |
39 | ||
40 | echo "KERNEL_COMMIT_ID=$KERNEL_COMMIT_ID" >> properties.txt | |
41 | echo "LTTNG_MODULES_COMMIT_ID=$LTTNG_MODULES_COMMIT_ID" >> properties.txt | |
42 | echo "BUILD_NAME=$BUILD_NAME" >> properties.txt | |
dc9700c9 | 43 | echo "BUILD_DEVICE=$BUILD_DEVICE" >> properties.txt |
b3d73c46 | 44 | |
dc9700c9 FD |
45 | echo "STORAGE_KERNEL_MODULE_SYMVERS=$STORAGE_KERNEL_FOLDER/$KERNEL_COMMIT_ID.$BUILD_DEVICE.symvers" >>properties.txt |
46 | echo "STORAGE_KERNEL_CONFIG=$STORAGE_KERNEL_FOLDER/$KERNEL_COMMIT_ID.$BUILD_DEVICE.config" >> properties.txt | |
b3d73c46 FD |
47 | |
48 | echo "STORAGE_HOST=storage01.internal.efficios.com" >> properties.txt | |
49 | echo "STORAGE_USER=jenkins-lava" >> properties.txt | |
50 | ||
51 | echo SSH_COMMAND="ssh -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt | |
52 | echo SCP_COMMAND="scp -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt |