Author: nickboldt
Date: 2011-07-21 17:45:25 -0400 (Thu, 21 Jul 2011)
New Revision: 33120
Modified:
trunk/build/publish.sh
Log:
sftp commands need to pipe to sftp (oops)
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2011-07-21 21:43:18 UTC (rev 33119)
+++ trunk/build/publish.sh 2011-07-21 21:45:25 UTC (rev 33120)
@@ -305,17 +305,17 @@
# purge contents of /builds/staging.previous/${JOB_NAME}.2 and remove empty dir
mkdir -p /tmp/${JOB_NAME}.2
rsync -arzq --delete /tmp/${JOB_NAME}.2 $DESTINATION/builds/staging.previous/
- echo -e "rmdir ${JOB_NAME}.2" | sftp
tools@filemgmt.jboss.org:/downloads_htdocs/tools/builds/staging.previous/
+ echo -e "rmdir ${JOB_NAME}.2" | sftp $DESTINATION/builds/staging.previous/
rmdir /tmp/${JOB_NAME}.2
# move contents of /builds/staging.previous/${JOB_NAME} into
/builds/staging.previous/${JOB_NAME}.2
- echo -e "rename ${JOB_NAME} ${JOB_NAME}.2"
$DESTINATION/builds/staging.previous/
+ echo -e "rename ${JOB_NAME} ${JOB_NAME}.2" | sftp
$DESTINATION/builds/staging.previous/
# move contents of /builds/staging/${JOB_NAME} into
/builds/staging.previous/${JOB_NAME}
- echo -e "rename ${JOB_NAME} ../staging.previous/${JOB_NAME}"
$DESTINATION/builds/staging/
+ echo -e "rename ${JOB_NAME} ../staging.previous/${JOB_NAME}" | sftp
$DESTINATION/builds/staging/
# move contents of /builds/staging/${JOB_NAME}.next into /builds/staging/${JOB_NAME}
- echo -e "rename ${JOB_NAME}.next ${JOB_NAME}" $DESTINATION/builds/staging/
+ echo -e "rename ${JOB_NAME}.next ${JOB_NAME}" | sftp
$DESTINATION/builds/staging/
# generate 2 ${STAGINGDIR}/all/composite*.xml files which will point at:
# /builds/staging/${JOB_NAME}/all/repo/
Show replies by date