[Anthill-pro] SVN Trigger post URL question

Steve Boone sbb at urbancode.com
Thu Jan 31 15:05:14 CST 2008


Wes,

It should work with files as well.  AnthillPro will check the list of the
files, against the source configuration.

Cheers,
Steve Boone

On 1/29/08, Wes Bramhall <WesB at widen.com> wrote:
>
>  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
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080131/a5b2f9a4/attachment.htm


More information about the Anthill-pro mailing list