summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2018-08-01 14:50:46 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2018-08-01 15:02:33 +0800
commit2e98e56224cd550cb3bf9798e420eece28139bd9 (patch)
treecea91f5a166f08ca69392950ded29044a5fddd02 /jjb
parentc109c271018e9a85d94be1b9b468338d64589684 (diff)
add the ssh_key info if the key_file is exist
Change-Id: I7a95933e254b35fc7b26d649226192b8e4c407bb Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
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