Changeset 800

Show
Ignore:
Timestamp:
10-08-10 23:50:02 (4 years ago)
Author:
duh
Message:

- changed script to tomcat before building new war to free resources

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • misc/scripts/gscf_continuous_integration.sh

    r759 r800  
    6464# get svn revision of HEAD and running application 
    6565cd $PATH_GRAILS_SOURCE 
    66 $SVN revert --recursive --quiet . 
    67 SVN_REVISION=`$SVN update | sed -n 's/At revision \(.*\)\./\1/p'` 
     66$SVN revert --recursive --quiet * 
     67$SVN update * --quiet * 
     68SVN_REVISION=`$SVN update . | sed -n 's/At revision \(.*\)\./\1/p'` 
    6869RUNNING_REVISION=`cat $TEMP/$PROJECT.revision` 
    6970 
     
    150151sed -i 's/<\/b>/<\/b> \(<font color="red">svn revision: '$SVN_REVISION', deployed at: '$STAMP'<\/font>\)/g' grails-app/views/home/index.gsp 
    151152sed -i 's/Welcome to GSCF version/Welcome to the <b>continuous integration build<\/b> of GSCF/g' grails-app/views/home/index.gsp 
    152  
    153 # build new war 
    154 echo $STAMP building new war... 
    155 grails prod war > /dev/null 
    156153 
    157154# stop tomcat 
     
    169166done 
    170167 
     168# build new war 
     169echo $STAMP building new war... 
     170grails prod war > /dev/null 
     171 
    171172# undeploying gscf releases 
    172173rm -rf $PATH_TOMCAT_WEBAPPS/gscf*