[Anthill-pro] SVN Trigger post URL question

Wes Bramhall WesB at widen.com
Tue Jan 29 14:34:42 CST 2008


I have set up my build to run on a post-commit trigger. Here's the the
script ends up running:

 

my $TRIGGER_URL="http://ci:8080/trigger";

my $REPOS=@ARGV[0] ;

my $REV=@ARGV[1];

my $CODE="89170b68c0993e573ccadd3ed1a577ae174a0dd7";

my @DIRS=`svnlook dirs-changed $REPOS -r $REV`;

my $DIRSCHANGED;

 

my $DIR;

 

foreach $DIR (@DIRS)

{

        if($DIR =~ m/collective\/trunk/ && ($DIR =~ m/test/ || $DIR =~
m/src/ || $DIR =~ m/ jars/))

        {

                chomp($DIR);

                $DIRSCHANGED=$DIR . "," . $DIRSCHANGED;

        }

}

my $WGET = "wget --tries 1 --no-check-certificate $TRIGGER_URL
--post-data=code=$CODE&dirs-changed=$DIRSCHANGED -q -O /dev/null ";

 

system($WGET);

 

As you can see, we're filtering changes to only include directories
explicity related to our unit tests for this trigger. However, there are
files in these folders that do not impact the unit tests and I was
wondering if Anthill would accept a list of changed files, rather than
changed dirs. It would be easy for us to change the 'svnlook
dirs-changed' command to 'svnlook changed' and filter by extension as
well. Now, I know we can do that and determine from the that the list of
directories to send to Anthill, but I was curious if Anthill would
accept the list of files as opposed to the list of directoris?

 

Thanks,

-Wes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080129/cf9c532e/attachment.htm


More information about the Anthill-pro mailing list