Welcome to the Jazz Community Forum
How to use SFTP for RTC EE Deploy on IBM i?

One answer

scp could be used to support copy from remote server to local using the following command:
<scp file="user:password@somehost:/home/chuck/*" todir="/home/sara"/> per http://ant.apache.org/manual/Tasks/scp.html
Users have an option to replace the loadUsingFTP task in <buildtoolkit-install-dir>jazz/buildsystem/buildtoolkit/scripts/enterprise/deploy.xml.
E.g. to replace the following task as below but other tasks like rollback, etc can be reused.
<target name="loadUsingFTP" if="isLoadMethodFTP">
<scp file="${team.deploy.common.load.ftp.calculated.userid}:${team.deploy.common.load.ftp.calculated.password}@${team.deploy.common.load.ftp.calculated.hostname}:${team.deploy.common.remotePackage.dir}" todir="${team.deploy.common.localPackage.dir}">
</scp>
</target>
<scp file="user:password@somehost:/home/chuck/*" todir="/home/sara"/> per http://ant.apache.org/manual/Tasks/scp.html
Users have an option to replace the loadUsingFTP task in <buildtoolkit-install-dir>jazz/buildsystem/buildtoolkit/scripts/enterprise/deploy.xml.
E.g. to replace the following task as below but other tasks like rollback, etc can be reused.
<target name="loadUsingFTP" if="isLoadMethodFTP">
<scp file="${team.deploy.common.load.ftp.calculated.userid}:${team.deploy.common.load.ftp.calculated.password}@${team.deploy.common.load.ftp.calculated.hostname}:${team.deploy.common.remotePackage.dir}" todir="${team.deploy.common.localPackage.dir}">
</scp>
</target>
Comments
Larry McCarthy
Jun 28 '16, 12:46 p.m.A bit more info... I found Feature 171981 with a potential workaround. Just checking to be sure it applies to IBM i, before parroting it here....
- Larry.