"""
Run Sync download server
"""
- rsync_cmd = 'rsync -avr %s/ %s' % (src, dst)
+ rsync_cmd = 'rsync -avr %s/* %s/' % (src, dst)
print 'rsync_cmd = %s' % (rsync_cmd)
proc = subprocess.Popen(rsync_cmd,shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = proc.communicate()
git_cmd = 'git clone ssh://%s:%s/%s -b %s' % ( git_host, git_port, git_prj, git_branch)
print 'git_cmd %s' %(git_cmd)
- buildcmd = '#!/bin/bash \n' \
+ buildcmd = '#!/bin/bash \nset -x\n' \
'BUILDDIR="/share/build"\nWORKDIR="/srv/work"\nRS="rbs_out"\nSDKIMAGE="sdk-image"\n' \
'chown -R build:build $BUILDDIR\nchmod 600 $BUILDDIR/.ssh/id_rsa \n' \
'cp -r "$BUILDDIR/.ssh/" /root/\nchmod 600 /root/.ssh/id_rsa\n' \