Skip to content

Commit

Permalink
scp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Staněk committed Oct 16, 2024
1 parent a9794ba commit 9494519
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,21 @@
<target name="deploy:ssh">
<echo message="${comment}..."/>
<echo message="${command}"/>
<ssh host="${deploy.ssh.host}" port="${deploy.ssh.port}" username="${deploy.ssh.username}" privkeyfile="id_rsa" pubkeyfile="id_rsa.pub"
command="${command}"/>
<ssh host="${deploy.ssh.host}" port="${deploy.ssh.port}" username="${deploy.ssh.username}" privkeyfile="id_rsa"
pubkeyfile="id_rsa.pub" command="${command}"/>
</target>

<target name="deploy:copy-tarball">
<echo message="Copying ${file} to ${toDirectory}"/>
<scp host="${deploy.ssh.host}" port="${deploy.ssh.port}" username="${deploy.ssh.username}" file="${file}" todir="{toDirectory}"/>
<scp host="${deploy.ssh.host}" port="${deploy.ssh.port}" username="${deploy.ssh.username}" privkeyfile="id_rsa"
pubkeyfile="id_rsa.pub" file="${file}" todir="{toDirectory}"/>
</target>

<target name="deploy:cleanup">
<echo message="Getting previous releases"/>

<property name="command" value="echo $(ssh -p ${deploy.ssh.port} ${deploy.ssh.username}@${deploy.ssh.host} 'ls ${deploy.releasesDir}' | grep -v '^${deploy.releaseHash}$')"/>
<property name="command"
value="echo $(ssh -p ${deploy.ssh.port} ${deploy.ssh.username}@${deploy.ssh.host} 'ls ${deploy.releasesDir}' | grep -v '^${deploy.releaseHash}$')"/>
<echo message="${command}"/>
<exec outputProperty="previousReleases" command="${command}" checkreturn="true"/>

Expand Down

0 comments on commit 9494519

Please sign in to comment.