Skip to content
Permalink
Browse files

Fix jenkins home path

Change-Id: I8d2d62f45384028332981307ef9f9b61e98b15bf
  • Loading branch information
LarsMichelsen committed Nov 29, 2019
1 parent 8801ee2 commit fa500fac1a0cc488e6199774547c23e6e8bf024a
Showing with 1 addition and 5 deletions.
  1. +1 −5 agents/windows/setup-ssh
@@ -14,11 +14,7 @@ ssh_key=id_rsa_windows_test
remote_ip=$(grep "remote_ip =" $script_dir/it/remote.py | sed "s/^.*'\(.*\)'/\1/g")
remoteuser=$(grep "remoteuser =" $script_dir/it/remote.py | sed "s/^.*'\(.*\)'/\1/g")

if [[ $SUDO_USER == jenkins ]]; then
home_dir=/var/lib/jenkins
else
home_dir=/home/$SUDO_USER
fi
home_dir=/home/$SUDO_USER

if [[ ! -f "$home_dir/.ssh/$ssh_key" ]] || [[ ! -f "$home_dir/.ssh/${ssh_key}.pub" ]]; then
echo "SSH key pair '$ssh_key' not found. Please generate a new key pair with the command"

0 comments on commit fa500fa

Please sign in to comment.
You can’t perform that action at this time.