jjb: babeltrace: use clang-format-16
[lttng-ci.git] / scripts / system-tests / generate-properties-slave.sh
CommitLineData
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
17touch properties.txt
18
6252703b
JR
19echo "# Setup endpoint
20host_base = obj.internal.efficios.com
21host_bucket = obj.internal.efficios.com
22bucket_location = us-east-1
23use_https = True
24
25# Setup access keys
26access_key = jenkins
27secret_key = echo123456
28
29# Enable S3 v4 signature APIs
30signature_v2 = False" > "$WORKSPACE/s3cfg"
31
b3d73c46
FD
32# Use all CPU cores
33NPROC=$(nproc)
34echo "NPROC=$NPROC" >> properties.txt
35
b3d73c46
FD
36LINUX_PATH="$WORKSPACE/src/linux"
37LTTNG_MODULES_PATH="$WORKSPACE/src/lttng-modules"
38
70742175 39echo "LTTNG_MODULES_GIT=$LTTNG_MODULES_REPO" >> properties.txt
b3d73c46
FD
40echo "LINUX_PATH=$LINUX_PATH" >> properties.txt
41echo "LTTNG_MODULES_PATH=$LTTNG_MODULES_PATH" >> properties.txt
42
43DEPLOYDIR="$WORKSPACE/deploy"
44MODULES_INSTALL_FOLDER="$DEPLOYDIR/modules"
45
46echo "DEPLOYDIR=$DEPLOYDIR" >> properties.txt
47echo "MODULES_INSTALL_FOLDER=$MODULES_INSTALL_FOLDER" >> properties.txt
48
49BUILD_NAME="$KERNEL_COMMIT_ID-$LTTNG_MODULES_COMMIT_ID"
50
51echo "KERNEL_COMMIT_ID=$KERNEL_COMMIT_ID" >> properties.txt
52echo "LTTNG_MODULES_COMMIT_ID=$LTTNG_MODULES_COMMIT_ID" >> properties.txt
53echo "BUILD_NAME=$BUILD_NAME" >> properties.txt
dc9700c9 54echo "BUILD_DEVICE=$BUILD_DEVICE" >> properties.txt
b3d73c46 55
9fb14641
FD
56echo "STORAGE_KERNEL_MODULE_SYMVERS=$STORAGE_KERNEL_FOLDER/symvers/$KERNEL_COMMIT_ID.$BUILD_DEVICE.symvers" >>properties.txt
57echo "STORAGE_KERNEL_CONFIG=$STORAGE_KERNEL_FOLDER/config/$KERNEL_COMMIT_ID.$BUILD_DEVICE.config" >> properties.txt
6252703b
JR
58echo "S3_STORAGE_KERNEL_MODULE_SYMVERS=$S3_STORAGE_KERNEL_FOLDER/symvers/$KERNEL_COMMIT_ID.$BUILD_DEVICE.symvers" >>properties.txt
59echo "S3_STORAGE_KERNEL_CONFIG=$S3_STORAGE_KERNEL_FOLDER/config/$KERNEL_COMMIT_ID.$BUILD_DEVICE.config" >> properties.txt
b3d73c46 60
55758044 61echo "STORAGE_HOST=storage.internal.efficios.com" >> properties.txt
b3d73c46
FD
62echo "STORAGE_USER=jenkins-lava" >> properties.txt
63
64echo SSH_COMMAND="ssh -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt
65echo SCP_COMMAND="scp -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt
6252703b 66echo S3_COMMAND="s3cmd -c ${WORKSPACE}/s3cfg" >> properties.txt
This page took 0.033292 seconds and 4 git commands to generate.