I am working over GIT cloning with help on ANT.I am using the below code for it :
<target name ="deploy">
<sshexec host="ssh://user@rep_location/project_name.git"
username="username"
password=""
passphrase="passphrase"
trust="true"
command="git clone ssh://user@rep_location/project_name.git D:/dest"/
/>
</target>
The location "D:/dest
" is the required folder where I want my repository cloned. But it throws error as unknown host exception
.
I tried few combination with host like ssh://user@rep_location
but it also returns server connection timeout.
We require a passphrase to be provided at the time of checkout.
This command works fine with GIT BASH
.