Author: nickboldt
Date: 2012-03-16 14:41:37 -0400 (Fri, 16 Mar 2012)
New Revision: 39586
Modified:
trunk/build/publish.sh
Log:
missing bootstrap step when publishing a new job for the first time
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2012-03-16 18:41:16 UTC (rev 39585)
+++ trunk/build/publish.sh 2012-03-16 18:41:37 UTC (rev 39586)
@@ -339,6 +339,7 @@
# JBIDE-8667 move current to previous; move next to current
if [[ ${DESTINATION##*@*:*} == "" ]]; then # user@server, do remote op
# create folders if not already there (could be empty)
+ echo -e "mkdir ${JOB_NAME}" | sftp $DESTINATION/builds/staging/
echo -e "mkdir ${JOB_NAME}" | sftp $DESTINATION/builds/staging.previous/
#echo -e "mkdir ${JOB_NAME}.2" | sftp $DESTINATION/builds/staging.previous/
@@ -365,6 +366,7 @@
echo -e "rename ${JOB_NAME}.next ${JOB_NAME}" | sftp
$DESTINATION/builds/staging/
else # work locally
# create folders if not already there (could be empty)
+ mkdir -p $DESTINATION/builds/staging/${JOB_NAME}
mkdir -p $DESTINATION/builds/staging.previous/${JOB_NAME}
#mkdir -p $DESTINATION/builds/staging.previous/${JOB_NAME}.2
Show replies by date