geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r613373 - in /geronimo/gbuild/daily_build_scripts: gbuild.sh testsuite.sh
Date Sat, 19 Jan 2008 06:45:38 GMT
Author: gawor
Date: Fri Jan 18 22:45:37 2008
New Revision: 613373

URL: http://svn.apache.org/viewvc?rev=613373&view=rev
Log:
update permissions after scp

Modified:
    geronimo/gbuild/daily_build_scripts/gbuild.sh
    geronimo/gbuild/daily_build_scripts/testsuite.sh

Modified: geronimo/gbuild/daily_build_scripts/gbuild.sh
URL: http://svn.apache.org/viewvc/geronimo/gbuild/daily_build_scripts/gbuild.sh?rev=613373&r1=613372&r2=613373&view=diff
==============================================================================
--- geronimo/gbuild/daily_build_scripts/gbuild.sh (original)
+++ geronimo/gbuild/daily_build_scripts/gbuild.sh Fri Jan 18 22:45:37 2008
@@ -91,10 +91,6 @@
 ts=`date +%T | awk -F: '{print $1$2}'`
 log=build-$ts.log
 
-dir=`date +%F | awk -F- '{print $1$2$3}'`
-bin_dir=$BINARY_DIR/$BRANCH_DIR/$dir
-ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "mkdir -p $bin_dir"
-
 rm -rf $M2_REPO
 
 if [ "$BUILD_OPENEJB" = "true" ]
@@ -167,6 +163,10 @@
 }
 
 build $SKIP_TESTS
+
+dir=`date +%F | awk -F- '{print $1$2$3}'`
+bin_dir=$BINARY_DIR/$BRANCH_DIR/$dir
+ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "mkdir -p $bin_dir"
 scp $log ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$bin_dir
 
 if [ "$SKIP_TESTS" = "true" ]
@@ -194,6 +194,9 @@
      scp $i ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$bin_dir
    done
 
+   # fix permissions   
+   ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "chmod -R g+w $bin_dir"
+
    cd ..
    
    if [ "$SKIP_TESTS" = "false" ]
@@ -217,6 +220,9 @@
   UNIT_DIR=$TEST_DIR/$BRANCH_DIR/unit-test-reports
   copyUnitTestReports
   scp -r $UNIT_DIR ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$bin_dir
+
+  # fix permissions
+  ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "chmod -R g+w $bin_dir"
 
   echo " " >> mail.txt
   echo "See the unit test reports at $BINARY_URL/$BRANCH_DIR/$dir/unit-test-reports" >>
mail.txt

Modified: geronimo/gbuild/daily_build_scripts/testsuite.sh
URL: http://svn.apache.org/viewvc/geronimo/gbuild/daily_build_scripts/testsuite.sh?rev=613373&r1=613372&r2=613373&view=diff
==============================================================================
--- geronimo/gbuild/daily_build_scripts/testsuite.sh (original)
+++ geronimo/gbuild/daily_build_scripts/testsuite.sh Fri Jan 18 22:45:37 2008
@@ -64,6 +64,9 @@
 
    scp -r $LOG_DIR ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$bin_dir
 
+   # fix permissions
+   ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "chmod -R g+w $bin_dir"
+
    echo " " >> $MAIL_FILE
    echo "Assembly: $CONTAINER" >> $MAIL_FILE
    echo "=================================" >> $MAIL_FILE



Mime
View raw message