From d8d932dbd791536e5de593b42ee092e24c9788da Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Mon, 30 Jan 2017 15:34:08 -0500 Subject: [PATCH] jjb: Add ssh command in injection build step for benchmark jobs Signed-off-by: Francis Deslauriers --- jobs/lttng-baremetal-tests.yaml | 1 + .../generate-properties-master.sh | 2 -- .../inject-ssh-commands.sh | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 scripts/lttng-baremetal-tests/inject-ssh-commands.sh diff --git a/jobs/lttng-baremetal-tests.yaml b/jobs/lttng-baremetal-tests.yaml index 573a927..c031279 100644 --- a/jobs/lttng-baremetal-tests.yaml +++ b/jobs/lttng-baremetal-tests.yaml @@ -73,6 +73,7 @@ builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh + - shell: !include-raw-escape: scripts/lttng-baremetal-tests/inject-ssh-commands.sh - trigger-builds: - project: "build_kernel_PARAM" property-file: 'properties.txt' diff --git a/scripts/lttng-baremetal-tests/generate-properties-master.sh b/scripts/lttng-baremetal-tests/generate-properties-master.sh index 2a00f60..ba35de0 100644 --- a/scripts/lttng-baremetal-tests/generate-properties-master.sh +++ b/scripts/lttng-baremetal-tests/generate-properties-master.sh @@ -61,5 +61,3 @@ echo "STORAGE_KERNEL_IMAGE=$BASE_STORAGE_FOLDER/kernel/$KERNEL_VERSION-$KERNEL_C echo "STORAGE_LINUX_MODULES=$BASE_STORAGE_FOLDER/modules/linux/$KERNEL_VERSION-$KERNEL_COMMIT_ID.$BUILD_DEVICE.linux.modules.tar.gz" >> properties.txt echo "STORAGE_LTTNG_MODULES=$BASE_STORAGE_FOLDER/modules/lttng/$KERNEL_VERSION-$KERNEL_COMMIT_ID-$LTTNG_MODULES_COMMIT_ID.$BUILD_DEVICE.lttng.modules.tar.gz" >> properties.txt -echo SSH_COMMAND="ssh -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt -echo SCP_COMMAND="scp -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt diff --git a/scripts/lttng-baremetal-tests/inject-ssh-commands.sh b/scripts/lttng-baremetal-tests/inject-ssh-commands.sh new file mode 100644 index 0000000..74e4dde --- /dev/null +++ b/scripts/lttng-baremetal-tests/inject-ssh-commands.sh @@ -0,0 +1,18 @@ +#!/bin/bash -xeu +# Copyright (C) 2017 - Francis Deslauriers +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +echo SSH_COMMAND="ssh -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt +echo SCP_COMMAND="scp -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt -- 2.34.1