geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r679522 - /geronimo/gbuild/daily_build_scripts/gbuild.sh
Date Thu, 24 Jul 2008 20:07:24 GMT
Author: dwoods
Date: Thu Jul 24 13:07:24 2008
New Revision: 679522

URL: http://svn.apache.org/viewvc?rev=679522&view=rev
Log:
create a latest link in the published binaries, so GEP can point to the daily build assemblies
instead of requiring users to manually build or download a server assembly to their maven
repo

Modified:
    geronimo/gbuild/daily_build_scripts/gbuild.sh

Modified: geronimo/gbuild/daily_build_scripts/gbuild.sh
URL: http://svn.apache.org/viewvc/geronimo/gbuild/daily_build_scripts/gbuild.sh?rev=679522&r1=679521&r2=679522&view=diff
==============================================================================
--- geronimo/gbuild/daily_build_scripts/gbuild.sh (original)
+++ geronimo/gbuild/daily_build_scripts/gbuild.sh Thu Jul 24 13:07:24 2008
@@ -150,6 +150,7 @@
 
 dir=`date +%F | awk -F- '{print $1$2$3}'`
 bin_dir=$BINARY_DIR/$BRANCH_DIR/$dir
+latest_dir=$BINARY_DIR/$BRANCH_DIR/latest
 ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "mkdir -p $bin_dir"
 scp $log ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$bin_dir
 
@@ -189,6 +190,10 @@
 
      grep -E "BUILD ERROR|FAILURE!|Failed to start Geronimo server" $mergedTestLog
      if [ $? -eq 0 ]
+       # if build and tests passed, then update link to latest build for GEP
+       ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "rm -f $latest_dir"
+       ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "ln -s $bin_dir $latest_dir"
+       ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "chmod g+w $latest_dir"
      then
        result="failed"
      fi



Mime
View raw message