Changeset 749


Ignore:
Timestamp:
Jul 29, 2010, 1:49:32 PM (6 years ago)
Author:
duh
Message:

made grails plugins configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/gscf_continuous_integration.sh

    r748 r749  
    4343SVN=`which svn`
    4444APACHE_VHOST_FILES=/etc/apache2/vhosts.d/osx.eu_gscf.conf
     45DEV_PLUGINS=( db-util nadd-neutralizer )
    4546
    4647# are we user tomcat?
     
    134135
    135136# uninstall development plugins
    136 if [ `ls -1 ~/.grails/$GRAILS_VERSION/projects/gscf/plugins/db-util* |wc -l` -gt 0 ]; then
    137         echo $STAMP uninstalling db-util plugin
    138         grails uninstall-plugin db-util > /dev/null
    139 fi
    140 if [ `ls -1 ~/.grails/$GRAILS_VERSION/projects/gscf/plugins/nadd-neutralizer* |wc -l` -gt 0 ]; then
    141         echo $STAMP uninstalling nadd-neutralizer plugin
    142         grails uninstall-plugin nadd-neutralizer > /dev/null
    143 fi
     137index=0
     138while [ "$index" -lt "${#DEV_PLUGINS[@]}" ]
     139do
     140        if [ `find /home/tomcat/.grails/$GRAILS_VERSION/projects/gscf/plugins/${DEV_PLUGINS[index]}* -maxdepth 0 -type d|wc -l` -gt 0 ]; then
     141                echo $STAMP uninstalling ${DEV_PLUGINS[index]} plugin
     142                grails uninstall-plugin ${DEV_PLUGINS[index]} > /dev/null
     143        fi
     144        ((index++))
     145done
    144146
    145147# patch index page to contain revision information
     
    159161#  make the sudo commands fail)
    160162echo $STAMP stopping tomcat...
    161 sudo /etc/init.d/tomcat-6 stop > /dev/null
    162 sleep 10
    163 sudo /etc/init.d/tomcat-6 stop > /dev/null
    164 sleep 10
    165 sudo /etc/init.d/tomcat-6 stop > /dev/null
    166 sleep 10
     163index=0
     164while [ "$index" -lt "3" ]; do
     165        sudo /etc/init.d/tomcat-6 stop > /dev/null
     166        sleep 10
     167done
    167168
    168169# undeploying gscf releases
Note: See TracChangeset for help on using the changeset viewer.