Changeset 891


Ignore:
Timestamp:
Sep 16, 2010, 11:35:24 AM (8 years ago)
Author:
duh
Message:
  • Continuous Integration now does not stop tomcat anymore and undeploys old build and deploys new build in running tomcat...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/continuous_integration.sh

    r890 r891  
    7272SVN=`which svn`
    7373DEV_PLUGINS=( db-util nadd-neutralizer )
     74MANAGER_URL=http://manager.nmcdsp.org/manager/html/undeploy?path=
     75MANAGER_USER=ci
     76MANAGER_PASSWORD=berterni3
    7477
    7578# are we user tomcat?
     
    171174        GRAILS_UPGRADED=0
    172175fi
    173 
    174 # stop tomcat
    175 # (a couple of times, sometimes it does not work
    176 #  properly or is slow. make sure sudoers is
    177 #  configured properly. On NBX-es this does not
    178 #  work as it uses shared modules that -somehow-
    179 #  make the sudo commands fail)
    180 echo $STAMP stopping tomcat...
    181 index=0
    182 while [ "$index" -lt "3" ]; do
    183         #sudo /etc/init.d/tomcat-6 stop > /dev/null
    184         $TOMCAT_STOP > /dev/null 2>&1
    185         sleep 10
    186         ((index++))
    187 done
    188176
    189177# upgrade project to new grails version?
     
    210198sed -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
    211199
    212 # clean project
    213 #echo $STAMP cleaning project cache...
    214 #grails clean --non-interactive > /dev/null
    215 
    216200# patch datasource.groovy
    217201echo $STAMP patching datasource for ci instance
     
    223207
    224208# undeploying gscf releases
    225 rm -rf $PATH_TOMCAT_WEBAPPS/$PROJECT-$OLD_APP_VERSION-ci*
     209echo $STAMP undeploying $PROJECT-$OLD_APP_VERSION-ci
     210curl --silent --user $MANAGER_USER:$MANAGER_PASSWORD --url $MANAGER_URL/$PROJECT-$OLD_APP_VERSION-ci > /dev/null
     211sleep 5
    226212
    227213# deploying new build
    228214echo $STAMP deploying new production WAR
    229215cp target/$PROJECT-$APP_VERSION.war $PATH_TOMCAT_WEBAPPS/$PROJECT-$APP_VERSION-ci.war
    230 
    231 # start tomcat
    232 # (make sure sudoers is configured properly. On NBX-es
    233 #  this does not work as it uses shared modules that
    234 #  -somehow- make the sudo commands fail)
    235 echo $STAMP starting tomcat...
    236 #sudo /etc/init.d/tomcat-6 start > /dev/null
    237 $TOMCAT_START > /dev/null 2>&1
    238216
    239217# fix virtual host files
Note: See TracChangeset for help on using the changeset viewer.