[Anthill-pro] Triggers + SVN - not working
Ryan Smith
rws at urbancode.com
Wed Jun 13 08:11:48 CDT 2007
Mikal,
Running the wget command manually, what do you get? Does it not trigger
the build when done this way? If you could send us the wget command at
support at urbancode.com and what version of wget you are using.
It will not be triggered by a browser hitting the URL since the request
must be a HTTP POST instead of a GET.
Below is our snippet for setting this up:
Configuring Subversion
In the post-commit hook script in your SVN repository, you add a check
to see that the changed information is on the path to your project. Then
you use a utility like wget to generate an http request to the URL
specified in the trigger.
if [ -n "$(svnlook changed /data/svn/mycompany/myproject -r $2 | grep
trunk)" ] then wget -t 0 https://server/trigger
--post-data='triggerId=31&code=95cde532437151c551cf062bf93c0d12de9209c7' fi
If we wanted to change this script to target a branch of the project
instead of the trunk, we would change the script to be:
if [ -n "$(svnlook changed /data/svn/mycompany/myproject -r $2 | grep
branches/june_release)" ] then wget -t 0 https://server/trigger
--post-data='triggerId=31&code=cf062bf93c0d12d95cde532437151c551e123456' fi
Ryan Smith
Mikal Todd wrote:
> I've spent about an hour attempting to get triggers to work and noted
> the earlier post by Doug Bell regarding triggers when it suggested a
> manual build and then try the triggers again.
>
> I have done the same as Doug, got the trigger setup, ran it with
> firefox/wget and still no build or anything in fact. Dead as a piece
> of driftwood.
>
> Tried deleting/changing triggers.. tried creating/changing them on
> different projects. Still no luck.
>
> I'm using AHP Version 3.2.1.b112
>
> Help!
>
> Thanks
>
> Mike
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
--
===========================================================
Ryan Smith. 2044 Euclid Ave., Suite 600
Lead Developer Cleveland, Ohio 44115
Urbancode, Inc.
email: rws at urbancode.com
web: www.urbancode.com phone: 216-858-9000
web: www.anthillpro.com fax: 216-858-9602
===========================================================
More information about the Anthill-pro
mailing list