cron-script.sh
branchgnome-2-10
changeset 19365 cf6ebcb9c095
parent 5216 8d8ac459facf
child 19377 27a5aa8e43a4
equal deleted inserted replaced
19364:e363334eeb96 19365:cf6ebcb9c095
     5 
     5 
     6 # user to rcp as (has to have root@<this host> in it's .rhosts file)
     6 # user to rcp as (has to have root@<this host> in it's .rhosts file)
     7 RUSER=gbuild
     7 RUSER=gbuild
     8 
     8 
     9 # directory to copy rpms/srpms to on the remote host
     9 # directory to copy rpms/srpms to on the remote host
    10 RPMSDIR=/sgnome/pkgs/cinnabar/rpms/nightly
    10 RPMSDIR=/sgnome/pkgs/gnome2.10/rpms/nightly
    11 SRPMSDIR=/sgnome/pkgs/cinnabar/srpms/nightly
    11 SRPMSDIR=/sgnome/pkgs/gnome2.10/srpms/nightly
    12 LOCKFILE=/sgnome/pkgs/cinnabar/rpms/.build.lock
    12 LOCKFILE=/sgnome/pkgs/gnome2.10/rpms/.build.lock
    13 
    13 
    14 # reply-to/to address to send the build log as/to
    14 # reply-to/to address to send the build log as/to
    15 [email protected]
    15 [email protected]
    16 [email protected]
    16 [email protected]
    17 
    17 
    27 
    27 
    28 # document root of the web server
    28 # document root of the web server
    29 WEBROOT=/scde/web/docs
    29 WEBROOT=/scde/web/docs
    30 
    30 
    31 # subdir to keep logs and reports on the webserver
    31 # subdir to keep logs and reports on the webserver
    32 WEBDIR=gnome/releng/jds/cinnabar/nightly
    32 WEBDIR=gnome/releng/jds/gnome2.10/nightly
    33 LOGDIR=$WEBDIR/$DIR_DATE
    33 LOGDIR=$WEBDIR/$DIR_DATE
    34 
    34 
    35 # ------------ nothing to configure below this line --------------
    35 # ------------ nothing to configure below this line --------------
    36 
    36 
    37 #if [ "x$I_KNOW_WHAT_IM_DOING" != xyes ]; then
    37 #if [ "x$I_KNOW_WHAT_IM_DOING" != xyes ]; then
   116 ./build-gnome2 -v --nightly --date "$RELEASE_DATE" build --target i586 *.spec \
   116 ./build-gnome2 -v --nightly --date "$RELEASE_DATE" build --target i586 *.spec \
   117         --logdir=$WEBROOT/$LOGDIR \
   117         --logdir=$WEBROOT/$LOGDIR \
   118         --logdir-url=http://gnome.ireland/$LOGDIR \
   118         --logdir-url=http://gnome.ireland/$LOGDIR \
   119 	--mail-errors-file=MAINTAINERS \
   119 	--mail-errors-file=MAINTAINERS \
   120 	[email protected] \
   120 	[email protected] \
   121         --prodname="Cinn/Linux" \
   121         --prodname="G2.10/Linux" \
   122         --good-build-dir=/sgnome/pkgs/cinnabar/rpms \
   122         --good-build-dir=/sgnome/pkgs/gnome2.10/rpms \
   123         --good-rpms-copy-dir=/tmp/old-rpms-used.$$ \
   123         --good-rpms-copy-dir=/tmp/old-rpms-used.$$ \
   124         --summary-log=$WEBROOT/$LOGDIR.html \
   124         --summary-log=$WEBROOT/$LOGDIR.html \
   125         --summary-title="Nightly Build Report `date +'%d %B %Y'`" \
   125         --summary-title="Nightly Build Report `date +'%d %B %Y'`" \
   126         --rpm-url=file:///net/dtserv1.ireland/dtserv1/sgnome/buildenv$RPMSDIR \
   126         --rpm-url=file:///net/dtserv1.ireland/dtserv1/sgnome/buildenv$RPMSDIR \
   127         --srpm-url=file:///net/dtserv1.ireland/dtserv1/sgnome/buildenv$SRPMSDIR  > /tmp/build.log.$$ 2>&1
   127         --srpm-url=file:///net/dtserv1.ireland/dtserv1/sgnome/buildenv$SRPMSDIR  > /tmp/build.log.$$ 2>&1
   161   echo "    <TD>$FAILED package(s) failed</TD></TR>"; \
   161   echo "    <TD>$FAILED package(s) failed</TD></TR>"; \
   162   cat $ALL_REPORTS.old ) > $ALL_REPORTS
   162   cat $ALL_REPORTS.old ) > $ALL_REPORTS
   163 
   163 
   164 # send log by email
   164 # send log by email
   165 cat /tmp/build.log.$$ | \
   165 cat /tmp/build.log.$$ | \
   166     mail -s "Cinn/Linux nightly build: $FAILED pkgs failed" \
   166     mail -s "G2.10/Linux nightly build: $FAILED pkgs failed" \
   167          -R $REPLY_TO $EMAIL_ADDR
   167          -R $REPLY_TO $EMAIL_ADDR
   168 
   168 
   169 rm -f /tmp/build.log.$$
   169 rm -f /tmp/build.log.$$
   170 
   170 
   171 echo '' | rsh $RHOST -l $RUSER "rm $LOCKFILE"
   171 echo '' | rsh $RHOST -l $RUSER "rm $LOCKFILE"