Ignore *-local-env.sh scripts and ignore SC2092 12/53112/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 10 Mar 2017 01:29:26 +0000 (20:29 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 10 Mar 2017 01:33:43 +0000 (20:33 -0500)
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>
.coafile
jjb/opendaylight-infra-copy-ssh-keys.sh

index 6802f48afea3349f6b8aee0b5ffdf1252ecf0f0d..945b4eab80459617bb82a9def09518434e6df6b6 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -17,5 +17,6 @@ bears = ShellCheckBear
 files = jenkins-scripts/**/*.sh,
     jjb/**/*.sh,
     scripts/**/*.sh
-ignore = jjb/integration/*.sh
+ignore = jenkins-scripts/*-local-env.sh,
+    jjb/integration/*.sh
 shell = bash
index 9af4b8e3981f606567c29daaecfd655120bba05c..99e9dc7e57591f227685fae47efcd70a1d93c99d 100644 (file)
@@ -7,6 +7,7 @@ source "$WORKSPACE/.venv-openstack/bin/activate"
 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}"