These files don't contain any commands and ShellCheck fails on them
because of that.
Change-Id: I4ec11081a3b7de3cfbb38f7a35480ff54fc0cc7d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
files = jenkins-scripts/**/*.sh,
jjb/**/*.sh,
scripts/**/*.sh
-ignore = jjb/integration/*.sh
+ignore = jenkins-scripts/*-local-env.sh,
+ jjb/integration/*.sh
shell = bash
function copy-ssh-keys-to-slave() {
RETRIES=60
for j in $(seq 1 $RETRIES); do
+ # shellcheck disable=SC2092
if `ssh-copy-id -i /home/jenkins/.ssh/id_rsa.pub "jenkins@${i}" > /dev/null 2>&1`; then
ssh "jenkins@${i}" 'echo "$(facter ipaddress_eth0) $(/bin/hostname)" | sudo tee -a /etc/hosts'
echo "Successfully copied public keys to slave ${i}"