Ignore *-local-env.sh scripts and ignore SC2092
[releng/builder.git] / jjb / opendaylight-infra-copy-ssh-keys.sh
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}"