mirror of https://github.com/apache/cloudstack.git
DevCloud: Make sure destination paths exists before scp
Makes dirs if they are not present before scp-ing target/ and dist/ to devcloud. Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
6c6d9bb89f
commit
53a3c2f171
|
|
@ -80,12 +80,14 @@
|
|||
</scp>
|
||||
|
||||
<echo message="copying target folder to remote"/>
|
||||
<sshexec trust="yes" host="${host}" port="${port}" username="root" password="password" command="cd /opt/cloudstack/incubator-cloudstack; mkdir -p target"/>
|
||||
<scp trust="yes" port="${port}" todir="root:password@${host}:/opt/cloudstack/incubator-cloudstack/target">
|
||||
<fileset dir="target">
|
||||
</fileset>
|
||||
</scp>
|
||||
|
||||
<echo message="copying dist folder to remote"/>
|
||||
<sshexec trust="yes" host="${host}" port="${port}" username="root" password="password" command="cd /opt/cloudstack/incubator-cloudstack; mkdir -p dist"/>
|
||||
<scp trust="yes" port="${port}" todir="root:password@${host}:/opt/cloudstack/incubator-cloudstack/dist">
|
||||
<fileset dir="dist">
|
||||
</fileset>
|
||||
|
|
|
|||
Loading…
Reference in New Issue