#!/bin/bash -xe

. $(dirname $0)/common.sh

python -m jiocloud.apply_resources ssh_config --project_tag=${project_tag} ${mappings_arg} environment/${layout:-full}.yaml > ssh_config

ssh -F ssh_config -l ${ssh_user:-jenkins} gcp1_${project_tag} '~jenkins/tempest/run_tempest.sh -N -- --load-list ~jenkins/tempest_tests.txt'

#!/bin/bash -xe

. $(dirname $0)/common.sh

if [ ! -f ${project_tag}_ssh_config ]; then
  python -m jiocloud.apply_resources ssh_config --project_tag=${project_tag} ${mappings_arg} environment/${layout:-full}.yaml > ${project_tag}_ssh_config
fi

ssh -F ssh_config -l ${ssh_user:-jenkins} gcp1_${project_tag} '~jenkins/tempest/run_tempest.sh -N -- --load-list ~jenkins/tempest_tests.txt'

Use existing ssh_config if possible
Use existing ssh_config if possible

debug code from deploy.sh is already creating ssh_config, so no ned to recreate
it. Also it was using same ssh_config, which is also changed.
