Changeset 1081

Show
Ignore:
Timestamp:
04-11-10 16:28:24 (3 years ago)
Author:
work@…
Message:

- updated CI script to support new build information

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • misc/scripts/continuous_integration.sh

    r1076 r1081  
    206206 
    207207# patch index page to contain revision information 
    208 echo $STAMP patching index page... 
    209 sed -i 's/<\/b>/<\/b> \(<font color="red">svn revision: '$SVN_REVISION', deployed at: '$STAMP'<\/font>\)/gi' grails-app/views/home/index.gsp 
    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 
     208echo $STAMP setting build information variables in application.properties 
     209TIMESTAMP=`date +'%s'` 
     210sed -i 's/app\.build\.type=\w\+/app.build.type=ci/gi' application.properties 
     211sed -i 's/app\.build\.display\.info=\w\+/app.build.display.info=1/gi' application.properties 
     212sed -i 's/app\.build\.timestamp=\w\+/app.build.timestamp='$TIMESTAMP'/gi' application.properties 
     213sed -i 's/app\.build\.svn\.revision=\w\+/app.build.svn.revision='$SVN_REVISION'/gi' application.properties 
    211214 
    212215# patch datasource.groovy