Changeset 3214 in /cluster/svnroot


Ignore:
Timestamp:
May 26, 2011 4:00:23 PM (10 years ago)
Author:
fitz
Message:

(#631) Minor updates including sending out an email to the user when builds are complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/fitz-devel/bin/bccd-build.pl

    r3209 r3214  
    99
    1010# I know Bccd.pm has a similar looking routine, but up until fetching the
    11 # auto_build script, I want this to be as independant as possible.
     11# auto_build script, this script ought to be as independant as possible.
    1212sub get_svn_rev( $ ) {
    1313        my ($svnurl) = @_;
     
    136136#!/bin/bash
    137137
    138 tmp=\$(mktemp -d)
     138tmp=\$(mktemp -d /tmp/bccd-build.XXXXXX)
    139139cd \$tmp
    140140svn cat $SVNROOT/$branch/bin/auto_build_wrapper.sh > auto_build_wrapper.sh
    141141chmod +x auto_build_wrapper.sh
     142
     143echo -n > ./mail.out
    142144
    143145for arch in i386 amd64; do
     
    154156
    155157        sudo \$tmp/auto_build_wrapper.sh -c ./build.\${arch}.conf
     158
     159        . ./build.\${arch}.conf
     160        echo \$OUTISO >> ./mail.out
     161        echo \${OUTISO}.md5 >> ./mail.out
     162        echo >> ./mail.out
    156163done
     164
     165cat ./mail.out | mail -s "Auto build of $branch completed" $from
    157166
    158167EOF
     
    160169my $tmp = File::Temp->new( TEMPLATE => 'build-bccd.XXXXX',
    161170        DIR => '/tmp',
    162         SUFFIX => '.sh',
    163         UNLINK => 0);
     171        #UNLINK => 0,
     172        SUFFIX => '.sh');
    164173print $tmp $script;
    165174
Note: See TracChangeset for help on using the changeset viewer.