jjb: Add ssh command in injection build step for benchmark jobs
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 30 Jan 2017 20:34:08 +0000 (15:34 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 10 Feb 2017 03:47:21 +0000 (22:47 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
jobs/lttng-baremetal-tests.yaml
scripts/lttng-baremetal-tests/generate-properties-master.sh
scripts/lttng-baremetal-tests/inject-ssh-commands.sh [new file with mode: 0644]

index 573a92714a15ce38556dd15bc8bdf8a11bf3f7c7..c0312792fda46f5115b1a94580937848c033df08 100644 (file)
@@ -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'
index 2a00f60a7068814f1808399429f34d9a2650c68c..ba35de05459627f6f416c6a965f3ae6fb1b13745 100644 (file)
@@ -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 (file)
index 0000000..74e4dde
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash -xeu
+# Copyright (C) 2017 - Francis Deslauriers <francis.deslauriers@efficios.com>
+#
+# 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 <http://www.gnu.org/licenses/>.
+
+echo SSH_COMMAND="ssh -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt
+echo SCP_COMMAND="scp -oStrictHostKeyChecking=no -i $identity_file" >> properties.txt
This page took 0.024432 seconds and 4 git commands to generate.