X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fopendaylight-infra-copy-ssh-keys.sh;h=d6801239f6b0b843889608bd2fda9c8e95584916;hb=a89c124b4f0535918f1bdd6248098cf55a608984;hp=9af4b8e3981f606567c29daaecfd655120bba05c;hpb=3bc78584ab661dea8b9d687f3f12b476393c0a92;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-copy-ssh-keys.sh b/jjb/opendaylight-infra-copy-ssh-keys.sh index 9af4b8e39..d6801239f 100644 --- a/jjb/opendaylight-infra-copy-ssh-keys.sh +++ b/jjb/opendaylight-infra-copy-ssh-keys.sh @@ -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}" @@ -30,10 +31,10 @@ function copy-ssh-keys-to-slave() { # Print the Stack outputs parameters so that we can identify which IPs belong # to which VM types. -openstack --os-cloud rackspace stack show -c outputs "$STACK_NAME" +openstack stack show -c outputs "$STACK_NAME" # shellcheck disable=SC2006 -ADDR=(`openstack --os-cloud rackspace stack show -f json -c outputs "$STACK_NAME" | \ +ADDR=(`openstack stack show -f json -c outputs "$STACK_NAME" | \ jq -r '.outputs[] | \ select(.output_key | match("^vm_[0-9]+_ips\$")) | \ .output_value | .[]'`)