summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2018-08-01 07:30:37 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-08-01 07:30:37 +0000
commit21b4506e546414bce99f491874e1eec15da3f4a0 (patch)
treecbbae000ce205cb8b9ba7b60b5cecae916e22d96 /jjb
parentadfbaf2a3e8487e4c9152bf864a653a0425b8582 (diff)
parent2e98e56224cd550cb3bf9798e420eece28139bd9 (diff)
Merge "add the ssh_key info if the key_file is exist"
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/doctor/doctor-env-presetup.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/doctor/doctor-env-presetup.sh b/jjb/doctor/doctor-env-presetup.sh
index 8c7c12e25..61e65c792 100755
--- a/jjb/doctor/doctor-env-presetup.sh
+++ b/jjb/doctor/doctor-env-presetup.sh
@@ -57,4 +57,6 @@ fi
# Write the installer info to the file
echo export INSTALLER_TYPE=${INSTALLER_TYPE} > $opnfv_installer
echo export INSTALLER_IP=${INSTALLER_IP} >> $opnfv_installer
-echo export SSH_KEY=${installer_key_file} >> $opnfv_installer
+if [ -e ${installer_key_file} ]; then
+ echo export SSH_KEY=${installer_key_file} >> $opnfv_installer
+fi