Skip to content

Commit 53a3c2f

Browse files
committed
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>
1 parent 6c6d9bb commit 53a3c2f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎build/build-devcloud.xml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@
8080
</scp>
8181

8282
<echo message="copying target folder to remote"/>
83+
<sshexec trust="yes" host="${host}" port="${port}" username="root" password="password" command="cd /opt/cloudstack/incubator-cloudstack; mkdir -p target"/>
8384
<scp trust="yes" port="${port}" todir="root:password@${host}:/opt/cloudstack/incubator-cloudstack/target">
8485
<fileset dir="target">
8586
</fileset>
8687
</scp>
8788

8889
<echo message="copying dist folder to remote"/>
90+
<sshexec trust="yes" host="${host}" port="${port}" username="root" password="password" command="cd /opt/cloudstack/incubator-cloudstack; mkdir -p dist"/>
8991
<scp trust="yes" port="${port}" todir="root:password@${host}:/opt/cloudstack/incubator-cloudstack/dist">
9092
<fileset dir="dist">
9193
</fileset>

0 commit comments

Comments
 (0)