Changeset 890
- Timestamp:
- Sep 16, 2010, 11:24:24 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/scripts/continuous_integration.sh
r864 r890 91 91 # get svn revision of HEAD and running application 92 92 cd $PATH_GRAILS_SOURCE 93 OLD_APP_VERSION=`sed -n 's/app.version=\(.*\)$/\1/p' < application.properties` 93 94 $SVN revert --recursive --quiet * 94 95 #$SVN update --quiet * … … 209 210 sed -i 's/Welcome to '$PROJECT' version/Welcome to the <b>continuous integration build<\/b> of <b>'$PROJECT'<\/b>/gi' grails-app/views/home/index.gsp 210 211 212 # clean project 213 #echo $STAMP cleaning project cache... 214 #grails clean --non-interactive > /dev/null 215 216 # patch datasource.groovy 217 echo $STAMP patching datasource for ci instance 218 sed -i 's/5432\/'$PROJECT'/5432\/'$PROJECT'-ci/g' grails-app/conf/DataSource.groovy 219 211 220 # build new war 212 221 echo $STAMP building new war... … … 214 223 215 224 # undeploying gscf releases 216 rm -rf $PATH_TOMCAT_WEBAPPS/$PROJECT *225 rm -rf $PATH_TOMCAT_WEBAPPS/$PROJECT-$OLD_APP_VERSION-ci* 217 226 218 227 # deploying new build 219 228 echo $STAMP deploying new production WAR 220 cp target/$PROJECT-$APP_VERSION.war $PATH_TOMCAT_WEBAPPS 229 cp target/$PROJECT-$APP_VERSION.war $PATH_TOMCAT_WEBAPPS/$PROJECT-$APP_VERSION-ci.war 221 230 222 231 # start tomcat
Note: See TracChangeset
for help on using the changeset viewer.