> Let's put it this way:
>
> If you:
>
> - place a file called "post-commit" into the "hooks" directory of your
> Subversion repository and
> - in the file you put the following lines:
>
> --- post-commit ---
> #!/bin/sh
> wget -O -
http://YOURHUDSON/job/YOURJOB/build> --- post-commit ---
>
> - and make that file executable,
>
> then you can disable polling from Hudson because the hook script will
> tell Hudson to build whenever a commit is made.
>
> If you do not want to start a build on every commit but only for those
> commits that change a certain part of the source tree, you can change
> the post-commit script to inspect the commit before deciding if a new
> build needs to be started. I myself do not know how that is done, I do
> not use subversion that much.
>
> Good luck,
>
> -- Sami
>
> 2009/10/23 Balaraman, Srinath <
[hidden email]>:
>> Sami,
>>
>>
>>
>> I am re-reading you message ³set up a hook script into your SCM and disable
>> polling². Do you mean: ³disable Polling from Hudson² OR ³write a hook-up
>> script to disable polling²?
>>
>>
>>
>> Thanks,
>>
>> Srinath
>>
>>
>>
>> ________________________________
>>
>> From: Balaraman, Srinath
>> Sent: Friday, October 23, 2009 2:15 PM
>>
>> To: '
[hidden email]'
>> Subject: RE: Re: Flexibility in the SCM polling mechanism.
>>
>>
>>
>> I am using SVN and sounds like I¹ll have to use post-commit.tmpl and modify
>> it to disable polling on a repository. But from here I don¹t know what kind
>> of script do I have to write do that. Is there something out there already
>> that I can use?
>>
>>
>>
>> Thanks,
>>
>> Srinath
>>
>>
>>
>> ________________________________
>>
>> From: Sami Tikka [mailto:
[hidden email]]
>> Sent: Friday, October 23, 2009 1:50 PM
>>
>> To:
[hidden email]
>> Subject: Re: Flexibility in the SCM polling mechanism.
>>
>>
>>
>> That greatly depends on the SCM you use. I would begin by googling something
>> like "<name of your SCM> hook", e.g. svn hook or git hook.
>>
>> -- Sami
>>
>> On 23.10.2009, at 16.54, "Balaraman, Srinath" <
[hidden email]>
>> wrote:
>>
>> Great! that¹s interesting. Can you please give me a little bit more info on
>> what kind of script and how do I go about doing that?
>>
>>
>>
>> Thanks,
>>
>> Srinath
>>
>>
>>
>> ________________________________
>>
>> From: Sami Tikka [mailto:
[hidden email]]
>> Sent: Thursday, October 22, 2009 5:58 PM
>> To:
[hidden email]
>> Subject: Re: Flexibility in the SCM polling mechanism.
>>
>>
>>
>> You could set up a hook script into your SCM and disable polling. That would
>> give you maximum flexibility to determine whoch commits should launch a
>> build.
>>
>>
>>
>> -- Sami
>>
>> On 23.10.2009, at 1.46, "Balaraman, Srinath" <
[hidden email]>
>> wrote:
>>
>> Hello All,
>>
>>
>>
>> I have the ability to configure multiple SCMs, but when it comes to polling,
>> each one of the listed SCM is polled. In our setup, we don¹t want to poll
>> all the SCMs, just a few of them. Ability to configure SCM polling criteria
>> for trigger purposes for each SCM is what I am looking for. Is there a way
>> to do this already or would that be a feature request?
>>
>>
>>
>> Thanks,
>>
>> -Srinath
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>