gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: jakarta-gump gumpy.sh
Date Mon, 27 Oct 2003 17:51:51 GMT
ajack       2003/10/27 09:51:51

  Modified:    .        gumpy.sh
  Log:
  Exit script and mail (via cron) if python fails
  
  Revision  Changes    Path
  1.20      +5 -3      jakarta-gump/gumpy.sh
  
  Index: gumpy.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/gumpy.sh,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- gumpy.sh	23 Oct 2003 23:10:22 -0000	1.19
  +++ gumpy.sh	27 Oct 2003 17:51:51 -0000	1.20
  @@ -147,9 +147,11 @@
   python gump/integrate.py -w ../${GUMP_WORKSPACE}.xml ${GUMP_TARGET} >> $GUMP_LOG
2>&1 
   export INTEGRATION_EXIT=$?
   echo "Integration completed with exit code : " ${INTEGRATION_EXIT} >> $GUMP_LOG
  -if [ ! ${INTEGRATION_EXIT} ] ; then
  -        echo "Failed to integrate, exited with [$?], exiting..." >> $GUMP_LOG
  -        echo "Failed to integrate, exited with [$?], exiting..."
  +if [ ${INTEGRATION_EXIT} -gt 0 ] ; then
  +        echo "Failed to integrate, exited with [${INTEGRATION_EXIT}], exiting..." >>
$GUMP_LOG
  +        echo "Failed to integrate, exited with [${INTEGRATION_EXIT}], exiting..."
  +        # For cron to mail to owner...
  +        cat $GUMP_LOG
           exit 1
   fi;
   
  @@ -193,8 +195,6 @@
   pkill -KILL -P $$ 
   
   # $Log$
  -# Revision 1.19  2003/10/23 23:10:22  ajack
  -# 1) Safer gumpy.sh cleanup
  -# 2) Set k-centipede runtime (stating with ant)
  -# 3) More printouts for testing CLASSPATH code
  +# Revision 1.20  2003/10/27 17:51:51  ajack
  +# Exit script and mail (via cron) if python fails
   #
  
  
  

Mime
View raw message